moving trees level back to the end