update value only if it diff