fixed getNeighbors()