implemented removeNeighbor()