rewrite instructions