rewrite rules to make them more concise