chnage the geolocation to a directive