added criteria for location access