reverse order of rules to make it more consistent