update rule rewrite