wrap element & update rule