add node to the path