everything rewriting