update tree-traversal