update rule matching