cleanup, nearby search functions