change the order of rules

order of rules is very important