tree structure update