updated neighbor search