locking variable for geolocation