modify geolocation method