added latlong_resolution function