Combined two rules into one rule