added geolocation function to script but not using it