trees and tidying up