corrected two of the great circle functions