Prepare: rewrite