copy tree