added setNode to tree