changed rule order