simplify tree