updated Geolocation code