added getNeighbor