Partially rewrite