using doit() in simplify