update class treeNode