made the rule rank if all the conditions meet