Coverting to subtree