improved proximity search