add treeTotal