finish treenode exercise