first rewrite rule