made is valid, added functiongetAdjacentNode