rewrite mistakes