add location condition