adding close in get_neighbors