began rewrite