adding function to find location

adding stuff