Right before switching around tree objects