added find location function