clone_tree method added