added latlon dist management