fixing haversine a new hope