added CopyTree()