updated tree structure