better rewriting recipe