fixed getNeighbors again