converting subtree