updating location every second