rewrite if, unless, for