using geolocation in the algo