commit with the function latlong