making the location updates faster and more efficient