update treeQ