added success and error geolocation functions