add locals
update rule