fixed find_neighbors