replaces invocations of set()/get() with update()