simplify and transform