start on rewrite