make sure EARTH_RADIUS is float