find location function