update value for arithmetic op