correct for earth curvature properly