subroutine get_tides return end