added getNeighbors