addapting to subtrees