set value on update