finished first set of rewrites