add nearby search function