changed the way that copyTree works.