treeId check