change geodesic formula