clean up tree