Update trigger: move it to a stand-alone var