start rewriting