trim and simplify