added rule application sequence