implemented newNeighborsOnly method