High oxygen barrier chitosan films neutralized by alkaline nanoparticles

The most frequent neutralisation procedure, applied on chitosan (CS) films includes treatment with NaOH base. Such treatment endows CS films with stability in water, yet, same can significantly decrease the film performance. In the present paper, we investigate Mg(OH)2 nanoparticles as a neutralisation agent for CS solutions followed by casting into films. This is combined and compared with classical casting and film drying from non-neutralized solutions followed by NaOH treatment after film formation. The influence on the properties of resulting films is investigated in detail and large differences are found for structure and barrier properties. The stable, opaque-to-transparent CS films (depending on Mg(OH)2 content and post-treatment) were obtained by facile casting method of neat CS or CS–Mg(OH)2 dispersions, in the complete absence of cross-linkers and plasticizers. FTIR data demonstrate the Mg(OH)2 and NaOH deprotonation effect, and strongly suggest intensive H-bonding interaction between CS and Mg(OH)2. X-ray photoelectron spectroscopy showed differences in the hydroxide content and protonation of CS nitrogen. The reduction of surface roughness and increase of homogeneity, the tensile strength and elongation, as well as thermal stability and excellent oxygen barrier properties were measured for CS enclosing the Mg(OH)2 nanoparticles. Further treatment with 1 M NaOH causes re-packing of CS polymer chains, improving the crystallinity and water vapour barrier properties, degrading the mechanical properties by increasing the films brittleness and increasing the char formation due to reduced thermal stability.


Introduction
Chitosan (CS) is a pseudo-natural, deacetylated chitin product, originated from exoskeletons of arthropods (including crustaceans and insects), marine diatoms and algae, as well as some fungal cell walls. CS is one of the few native polysaccharides with primary amines leading to a positively charged polyelectrolyte under acidic conditions, triggering its solubility, and ultimate properties as well. Due to a multitude of interesting features (e.g. nontoxicity, biodegradability, hydrophilicity, antimicrobial and antifungal efficiency, film-forming capacity) offered by CS macromolecules comprising randomly distributed fractions of b-(1 ? 4)-D-glucosamine and b-(1 ? 4)-Nacetyl-D-glucosamine, this polymer evidence promise in various fields. Some of them are food packaging (Božič et al. 2011(Božič et al. , 2012Manigandan et al. 2018), cosmetics (Hirano et al. 1991), biomedicine Reddy Tiyyagura et al. 2016;Gorgieva et al. 2018;Wang et al. 2020), agriculture (Bandara et al. 2020), wastewater management (No and Meyers 2000), fuel cells (Kaker et al. 2019;Gorgieva et al. 2021;Hren et al. 2021), etc. CS films have been successfully used as packaging materials to preserve the quality of a wide variety of fruits (raspberry, apple, kiwi (Drevinskas et al. 2017), strawberry) and even meats (chicken, turkey, beef, pork, and fish) (Homez-Jara et al. 2018). Besides, the CS is also known to elicit plant defences against several classes of pathogens, including fungi, viruses, bacteria and phytoplasma, widening its use also in pharmacy (Shariatinia 2019). CS possesses the excellent capacity to form microspheres, membranes and fibres, mainly using acetic acid as solvent, or other alternative solvents, such as lactic (Niamsa and Baimark 2009), tartaric (Cui et al. 2018), maleic, hydrochloric and nitric acid, adipic, and citric acid (Hejazi et al. 2018) as well as inorganic AlCl 3 Á6H 2-O (Hu et al. 2018) all of which influence final mechanical properties. The solubility in such, semiaquatic environments and diluted acidic solutions, contributes to high moisture absorption, diminishing the mechanical properties as well, for which different plasticizers, fillers, or cross-linking agents have been used (Hejazi et al. 2018;Gorgieva et al. 2018).
The film formation out of CS solution occurs due to the preservation of chain entanglements and intermolecular interactions (e.g. H-bonding) during the drying process. The neutralization of CS films, membranes, or nano/microparticles that are prepared by drying acidic solutions followed by immersion into NaOH is the most frequently used neutralisation approach to omit their solubility while eliciting other properties for the resulting material. Indeed, the neutralization was found to significantly influence the proliferation and cytoskeletal organization of chondrocytes seed it on CS-based matrices (Noriega and Subramanian 2011). Effects of neutralization on the physicochemical properties on antibacterial, and drug-release properties also have been reported (Mauricio-Sánchez et al. 2018). Yet, as a strong base, the NaOH can be rather aggressive towards biopolymers. It was already demonstrated that CS films treated with aqueous, 0.1-1 M NaOH revealed not only deprotonation responsible for solubility reduction, but also increase the deacetylation, influencing the packaging and ordering of molecules and crystallinity of resultant films (Takara et al. 2015). This post-processing procedure can even devalue the CS films applicability in a segment where CS acetyl groups can contribute, for instance, in the stabilization of crystalline structures which plays an important role in mechanical behaviour (Cui et al. 2016), as well as in hydrophobicity. We, therefore, became interested in how the pH value of the CS solution that is used to cast films, influences the structure and properties of resulting films after drying. An alternative to neutralization after casting and drying is partial neutralization of the CS solution before processing into films. Acidic aqueous CS solutions can however not easily and quickly be neutralized by the addition of liquid bases because local gelling occurs. Therefore, we examine the effects of inorganic Mg(OH) 2 nanoparticles a neutralisation agent for CS films added before film casting. Mg(OH) 2 has been chosen because in pre-experiment it turned out that aqueous NaOH of sufficient concentration cannot be added quickly enough to the casting solutions without causing local gelling and an inhomogeneous polymer phase. Mg(OH) 2 is a weak base with very limited solubility in water (the Ksp at 25°C is 6 9 10 -12 ).
Indeed, the Mg(OH) 2 is widely used as an antacid since it slowly dissolves as it neutralizes stomach acid rather than dissolving all at once. During this reaction, the H ? ions from the HCl in the stomach react with the OHions from Mg(OH) 2 dissolution, forming water and driving the reaction to the right, causing more Mg(OH) 2 to dissolve and further dissociate. According to LeChâtelier's principle, the OHions are removed from the solution by the H ? ions, and more Mg(OH) 2 is forced to dissociate to replace those ions. These nanoparticles are non-toxic, low-cost material, which is often used as an additive in drugs and food sectors, offering among others the antibacterial, antifouling properties, flame retardant properties, etc. The addition of Mg(OH) 2 was already reported to support the formation of stable membranes for fuel cell application (Kaker et al. 2019;Hren et al. 2021) and to improve the compressive strength of CS/silk fibroin films for biomedical application (Eivazzadeh-Keihan et al. 2021), without details about the chemistry behind, and not in light of potential packaging application.
We assume that acidity of CS solution (dissolved in HCl) will trigger the step-wise solubility of Mg(OH) 2 nanoparticles, ending up with prolonged CS deprotonation in contrast to swift deprotonation with a strong base (as NaOH). Ultimately, we aim to demonstrate a relatively simple method for CS films processing, while investigating the Mg(OH) 2 neutralisation effect on few applicable properties of resulting films, when used alone, or combined with 1 M NaOH treatment. We hypothesise that a higher pH value of the filmforming solution leads to tighter packing of the polymer chains and henceforth higher barrier properties against oxygen or water vapour of resulting films.
Film preparation CS polymer was dissolved in Milli-Q water at 1.5 wt.% concentration, by adjusting the pH to 2.0 (with 1 M HCl) at room temperature. The resulting solution was stirred for 3 h until the solution mixture became homogeneous with a viscous, transparent appearance. To this solution, the 1 wt.% Mg(OH) 2 water dispersion was added to reach pH 4.0 or pH 6.0. The solution was diluted to the final 1 wt.% of CS and 6.9 mM of Mg(OH) 2 and 12.6 mM of Mg(OH) 2 at pH 4.0 and pH 6.0, respectively. 25 ml CS/Mg(OH) 2 dispersion were separately cast into a Petri dish with a diameter of 8.5 cm and allowed to dry at room temperature. For comparison 25 ml CS solution pH 2.0 was cast without adding Mg(OH) 2. Resulting, dry films were neutralized in 1 M NaOH for 30 min under slight shaking at room temperature, washed with Milli-Q water until pH of the washing Milli-Q water was constant and left to dry in the air (samples are indicated as n for neutralization with NaOH after casting). Comparisons were made with non-NaOH neutralized films. The as-prepared films were equilibrated at 50 AE 2% relative humidity (RH) and 21 AE 2°C for 1 week and sealed in plastic bags until testing.

Morphology -FE-SEM and AFM
Field Emission Scanning Electron Microscopy (FE-SEM) measurements were performed with a Carl Zeiss FE-SEM SUPRA 35 VP electron microscope. For all samples, imaging was performed in a high vacuum at 1 kV accelerating voltage. The films were placed on a conductive carbon adhesive tape, mounted on an aluminium sample holder, air-dried and sputtered with Pd on chemical vapor deposition (CVD) sputtering device Denton (Denton Vacuum).
Atomic Force Microscopy (AFM) was performed in tapping mode with an Agilent 7500 AFM multimode scanning probe microscope (Keysight Technologies, Santa Barbara, USA). The images were scanned in tapping mode with silicon cantilevers (ATEC-NC, Nanosensors, Germany) at an ambient temperature in air (resonance frequency of 210-490 kHz and a force constant of 12-110 N m -1 ). All images were recorded with a resolution of 2048 9 2048 pixels and were processed using the freeware Gwyddion allowing for the AFM roughness to be calculated as the root mean square (RMS) deviation from the mean height of the topography after levelling off the images by mean plane subtraction (Nečas and Klapetek 2012).

Contact angle measurements
The water contact angles of the films were measured by using Dataphysics contact angle measurement system OCA35 (Filderstadt, Germany) with the sessile drop (3 ll drop volume) method using the tangent method. Water absorption kinetics was monitored in time intervals until complete absorption. All measurements were performed at room temperature, in triplicates, and mean/standard deviation values were calculated.
Attenuated total reflectance fourier transform infrared spectroscopy (ATR-FTIR) ATR-FTIR spectra were recorded using a Perkin-Elmer Spectrum One FTIR spectrometer with a Golden Gate ATR attachment and a diamond crystal at room temperature i.e., 23 ± 2°C. The absorbance measurements were carried out within the 400-4000 cm -1 , with 16 scans and a resolution of 4 cm -1 .

X-ray diffraction (XRD)
XRD patterns of the membranes were collected on a D5005 X-ray diffractometer (Bruker Siemens). A diffraction angle 2 h between 2°and 70°with a step size of 0.04°using Cu-ka radiation at 40 kV and 40 mA was measured. The background runs were subtracted from data runs, as suggested by French (2020) as an important step in XRD data treatment. The crystallinity (%) was calculated by dividing the area of the crystalline peaks by the total area under the curve from 2h 5°to 30° (Abdou et al. 2008), using the Diffrac.eva software (Bruker).

X-ray photoelectron spectroscopy (XPS)
XPS analyses were carried out on the PHI-TFA XPS spectrometer produced by Physical Electronics Inc. The analyzed area was 0.4 mm in diameter and the analyzed depth was about 3-6 nm. The sample surfaces were excited by X-ray radiation from a monochromatic Al source at a photon energy of 1486.6 eV. The high-energy resolution spectra were acquired using an energy analyzer operating at a resolution of about 0.65 eV and pass-energy of 187 eV. During data processing the spectra from the surface were aligned by setting the C-C/C-H peak in the C 1 s spectrum to binding energy of 285.0 eV. The accuracy of the binding energy was about ± 0.3 eV. The concentrations were calculated from the intensities of the peaks within the XPS spectra using relative sensitivity factors provided by the instrument's manufacturer. Two spots were analyzed on each sample and the average composition was calculated.
Binding energies (BE) were referred to as the C 1 s line of adventitious carbon at 284.8 eV and determined with the resolution of ± 0.1 eV. These spectra were fitted assuming Gaussian distribution for each peak, with a linear background to determine the binding energy of the various element core levels.
Oxygen permeability (OP) The thickness of the films was measured by using a digital micrometre (Tesa, Swiss). Thicknesses of films were measured at several positions on the film and average values were calculated and used for following OP and Water vapour permeability (WVP) measurements.
Before measuring the oxygen transmission rate (OTR), the samples were conditioned at a temperature of 21 AE 2°C and 50 AE 5% RH for 24 h. OTR of the films was determined according to ASTM D 3985-06 standard at 23 AE 2°C and 50 AE 5% RH using an Oxygen Transmission Rate Test System (OX2/230, Labthink). The OTR was measured after the film had been placed in a cell and the oxygen flow introduced on one side of the film. The OP (cm 3 lm m -2 day -1atm -1) was calculated from the mean OTR (cm 3 m -2 day -1 ) multiplied by the film thickness (lm) and divided by the oxygen gradient within the cell of the testing machine. Three independent determinations were carried out for each film sample and mean/SD values were calculated.

Water vapour permeability (WVP)
Films were conditioned for 24 h were fixed above aluminium cups, each containing 45 g of calcium chloride. The whole device was weighed and then placed within a climatically controlled chamber (21 AE 2°C and 50 AE 2% RH). The cups were then weighed at regular time intervals, and a linear relationship was obtained between the quantity of water transferred per unit of air and time. Water vapour permeability (gÁm/m 2 ÁhÁPa) was calculated as follows: where WVTR was measured water vapour transmission rate (g/m2Áh) through a film specimen, l was average film thickness (m), and Dp was partial water vapour pressure difference (Pa) between the 2 sides of the film specimen. WVTR was determined gravimetrically using an ASTM Method E 96-95 (ASTM 1995). Three independent determinations were carried out for each film sample, and the mean/SD values were calculated.

Moisture content (MC)
The moisture content of films was determined by measuring the weight loss of films, upon drying in a halogen moisture analyzer (HB43 Mettler Toledo) at 105°C. Before measurements samples were conditioned at a temperature of 21 AE 2°C and 64% AE 2% RH for 24 h.

Thermal analysis
Differential scanning calorimetry (DSC) was performed using a thermal analyzer (TGA/DSC STAR System, HP DSC Mettler Toledo). Piece of films, weighing * 10 mg, were placed into aluminium pans and hermetically sealed. An empty pan was used as a reference. The samples were heated from 25 to 600 C at a constant rate of 10°C/min, under a nitrogen atmosphere. Thermogravimetric analysis (TGA) was performed using a thermogravimetric analyzer (TGA/DSC STAR System, HP DSC Mettler Toledo). The percentage weight loss and thermal degradation temperature values of the CS films were determined over the temperature range of 25-600°C, using a heating rate of 10°C/min, under a nitrogen stream.

Mechanical properties
The tensile strength at maximum (MPa) and the tensile strain at break (%) of the films were measured according to the standard method TAPPI T494 om-01 using a Shimadzu AGS-X electromechanical universal testing machine. For testing, the films were cut into a size of 4 mm 9 5 cm and vertically mounted with two clamps with a 2.5 cm distance between the clamps. Films were tested at a speed of 1 mm min -1 with a 5 kN load cell. At least five experimental runs were carried out and average values and standard deviations were calculated. All films were conditioned at 21 AE 2°C and 50 AE 2% RH for 24 h before the test.

Morphology
Neat CS films were prepared out of 1% CS solution with pH 2, using 1 M HCl as solvent. The addition of different amounts of Mg(OH) 2 to CS solution, causes partial dissolution of the basic nanoparticles and release of hydroxyl ions, which increase the alkalinity of the system to pH 4 and 6 when 6.9 mM and 12.6 mM of Mg(OH) 2 are used. This avoids immediate local precipitation and gelling as would be the case when a solution of NaOH is added to and mixed with the CS solution. It rather leads to slower neutralization by the dissolution of the dispersed particles in the acidic solution. This should in turn cause the formation of a homogeneous CS solution with a higher pH value for casting and film formation. Films were cast, dried, neutralized with 1 M NaOH, washed with water and re-dried before analysis.
Macroscopic observation of neat cast acidic CS film (photographs on Fig. 1, left column) reveals opacity, which does not significantly alter after neutralization with 1 M NaOH (nCS film). On contrary, the addition of Mg(OH) 2 into CS solution, ends up in semitransparent films, where higher transparency was observed for neutralized film prepared form dispersion with pH4 (film nCS/Mg(OH) 2 _pH4, Fig. 1b). SEM images (Fig. 1, right column) depict the l-scale, topographic features of the films. Random presence of micro-voids between well defined, discrete, as well as merged spherical particles were observed within neat CS films (Fig. 1b, top). These irregularities disturb the propagation of light, causing film opacity. Those features are the consequence of polymer de-solvation when polymer-polymer hydrophobic interactions and hydrogen bonding (Cho et al. 2006) dominates over the repulsive forces among protonated amines. Indeed, regardless of the solid form (powder, flakes, etc.), the CS chains are tightly packed due to the intrinsic tendency of the polymer to aggregate through van der Waals forces inherent to functional groups in its molecular structure. Even in a slightly acidic medium, although some chains may be solvated, the vast majority are expected to still form packaged insoluble structures (aggregates) whose ionized amine groups are present in a high fraction on their surfaces (Giraldo and Rivas 2021). Moreover, the presence of Clcounterions from the CS solvent (HCl) can impair the long-range organization within the CS molecules by immobilizing the hydration water, which is an additional cause of of}defects}(voids) formation within the structure (Gartner et al. 2011). In the dry state, MgCl 2 can be assumed to be present.
The addition of Mg(OH) 2 makes the films much more homogeneous and voids-absent. According to a study of Liu et al. (Wetteland et al. 2018), the Clbind to the intermediate MgOH ? formed during Mg(OH) 2 dissociation, which decreases the adsorption of H ? to nearby Mg(OH) 2 , and further enhance dissociation of Mg(OH) 2 . The released OHallows stepwise neutralization of CS, which reduces the formation of aggregates and voids between them. Further addition of Mg(OH) 2 within the system with higher alkalinity (reaching the pH 6) do not follow the same trend as particles become much less soluble, and remain within dry films in particulate form, randomly distributed within the films (Fig. 1c). This observation discourages the future addition of Mg(OH) 2 , meaning the films did not overpass the pI of CS * pH 6.5 and remain soluble. To omit their gelling and decomposition, the neutralization with 1 M NaOH was performed. The most pronounced effect in terms of microstructure was observed in the neat CS film, where complete disappearance of voids, the particles fusion and film flattening were observed, most probably due to re-organization of CS molecules, leading to a more compact structure (Takara et al. 2015).
The same was further confirmed at the nanoscale, within AFM micrographs on Fig. 2. Herein, the neat CS film demonstrates the presence of large ''islands'' Fig. 1 a Photographs and different magnification SEM micrographs of a CS and CS/Mg(OH) 2 films, the latter prepared at b pH 4 and c pH 6, before and after neutralization with 1 M NaOH (prefix n stands for films neutralized with 1 M NaOH) Fig. 2 AFM height, phase and 3D images of neat CS films at pH 2 and CS/Mg(OH) 2 _pH4 and CS/Mg(OH) 2 _pH6 composite films a before and b after neutralization with 1 M NaOH 123 or ''particle-like features with roughness values of approximately 41 nm, when examined on 10 9 10 lm 2 areas. These features were less pronounced in the neutralized CS film, yet, in both cases, relatively high RMS values were found. There were differences in surface morphology and roughness for CS film after the addition of alkaline Mg(OH) 2 nanoparticles. Although the addition of Mg(OH) 2 still exhibited a roughness similar to that of the neat CS film before treatment, the uniformity of the surface of the latter film was improved, which goes ahead with the assumption for step-wise deprotonation, restricting the CS aggregation. After neutralization with 1 M NaOH, the film surfaces became rather smoother with a lower (15 nm) RMS value, confirming the SEM observation, also on the nanoscale. Overall, the surface roughness decreases in order CS [ CS/ Mg(OH) 2 _pH4 [ CS/Mg(OH) 2 _pH6, as well as after neutralization with 1 M NaOH, while the opposite holds for homogeneity of the films. The lowest RMS value (11.5 nm), find for nCS/Mg(OH) 2 _pH6 can be explained by the appearance of nanoparticles after neutralization 1 M NaOH, where we speculate the precipitation of Mg(OH) 2 from MgCl 2 due to exposure in highly basic media. The fact that they resist the intensive washing process indicates that these particles are well embedded into the film's structure.

Chemical characterization
The FTIR spectroscopy was used to assess the CS-CS and CS-Mg(OH) 2 interactions, before and after neutralization with 1 M NaOH. Figure 3 the asymmetric broadband in the range between 3000 and 3700 cm -1 can be attributed to O-H stretching vibrations in CS. Within this region, the neat CS membrane exhibited three well-defined peaks at 3450 cm -1 , 3362 cm -1 , and 3310 cm -1 , indicating the presence of free OH groups, the N-H stretching and H-bonded O-H stretch vibrational frequencies, respectively. Next are vibrations a * 2980 cm -1 , ascribed to the stretching of saturated C-H groups. The higher intensity peak at 2863 cm -1 and the lower intensity peak at 2915 cm -1 , in the C-H stretch region of the spectra, are characteristic of the symmetric and asymmetric modes of CH 2 group vibrations, respectively, the latter appearing only in case of films neutralized with 1 M NaOH. This is an indication of the change in orientation of acetylated groups, which, as can be seen later one affect the hydrophilicity/hydrophobicity character of the film's surface. We speculate on possible outwards exposure of hydrophobic (-CH 2 ) moiety; the same will affect the contact angle data, described in the following section.
Other characteristic peaks for CS, observed at 1651 cm -1 (C = O stretching vibration of the amide I group, 1580 cm -1 (N-H bending of NH 2 ), 1420 cm -1 and 1380 cm -1 (CH 2 deformation and CH 3 symmetrical deformation in the residual amide N-acetyl group, respectively) and 1320 cm -1 (amide III, CH 2 wagging). Most intensive changes were observed in the position of amide I and II regions were shifting towards higher wavenumbers, was seen from * 1620 to * 1650 cm -1 for amide I and * 1520 cm -1 to 1580 cm -1 in amide II, due to change in conformation of amide moiety and deprotonation of amine group after neutralization NaOH, respectively. Both changes are closely related as deprotonation reduces the hydration shell of the amine groups and allowed new hydrogen bonds to form in the CS chains (Takara et al. 2015), thus a change in molecular conformation occurs to rebalance the total energy of the system.
Comparing the CS and CS/Mg(OH) 2 films, the main difference was a reduction of two peaks at 2915 cm -1 and 2863 cm -1 into one at 2875 cm -1 (indicate by black arrows), which can suggest on interactions of Mg 2? with the acetyl residues present on partially deacetylated CS. Moreover, in the composite film prepared at pH 6, the deprotonation-related shifting of the -NH 2 group was observed (shift from 1517 cm -1 in CS to 1512.6 cm -1 in CS/Mg(OH) 2 _-pH6) confirming the neutralization of Mg(OH) 2. The vibration of carbonyl bonds (C = O) in amide group CONHR was also affected by Mg(OH) 2 presence (shift from 1623.3 cm -1 in CS to 1647.5 cm -1 in CS/ Mg(OH) 2 _pH6).
The absorption band at 1150 cm -1 pertains to the asymmetrical stretching of the C-O-C bridge, and the skeletal vibration involving C-O stretching at 1029 cm -1 . Both are characteristically assigned to the CS saccharide structure. No change in position and intensity was observed for C-O-C bridge vibration after the neutralization process, while the latter cause shifting in the C-O region, again suggesting conformation change, as described previously.
Importantly, the strong vibration at 3695 cm -1 in Mg(OH) 2 powder spectra, assigned to the OH groups on the surface, at the edge, or in the corner sites of nanoparticles (Kurosawa et al. 2021) is absent in CS/ Mg(OH) 2 films. A close look after the surface of the broad O-H bonding-related region in CS/Mg(OH) 2 films (area below red, dotted lines) demonstrate enlargement of this vibration. Both findings strongly suggest on absence and dissolution of these nanoparticles in non-integrated form and intensive H-bonding interaction between CS and nanoparticles.
XPS was further used to identify the chemical composition of respective films and to investigate the interactions among film components, before and after neutralization. Quantitative chemical data of films are shown in Table 1. Neat CS films contain chloride ions from the HCl dissolution and show a significantly higher carbon and lower nitrogen and oxygen content than theoretically expected for pure CS. For CS films containing Mg(OH), 2 (pH 4 and pH 6, before neutralisation with 1 M NaOH) %C and %Mg increased, while %O, %N and %Cl atoms decreased, comparing to neat CS. The increase of %C (C 1 s peak at 285.0 eV) can be assigned to the low amount of MgCO 3 product that is formed between Mg(OH) 2 and CO 2 in the air (Yap et al. 2011), which was not detected by FTIR due to low concentrations. Clis a counterion from CS solvent (the HCl), which can bind and stabilise the intermediate MgOH ? formed during Mg(OH) 2 dissociation and MgCl 2 formation. Consequently, the concentration of Clwas reduced with an increase of pH, while the same was completely removed after the neutralisation process when Mg(OH) 2 was re-precipitated, and Cl-washed away from the films. On the other hand, there is no obvious change in %Mg after neutralisation, confirming strong interaction with CS moieties and probably the reformation of Mg(OH) 2 . Surface nitrogen decreases concomitantly with an increase in carbon content which can be interpreted as partial deamination through elimination by the harsh chemical treatments.  The high-resolution N1s XPS spectra of CS and CS/ Mg(OH) 2 films are shown in Fig. 4a. There are two N1s peaks located at 399 eV and 401-402 eV for neat CS film, which are attributed to the existence of the nitrogen atoms in the -NH 2 and -NH 3 ? groups, respectively (Yap et al. 2011;Shen et al. 2013). After mixing of Mg(OH) 2 nanoparticles with acidic CS solution, the formed films evidence the same two peaks, where overall N1s peak intensity decreased with increasing the Mg(OH) 2 concentration, indicating possibly deamination and a dilution effect of the salt. A new band around 397 eV was found in the spectrum of CS/Mg(OH) 2 films at pH 4 and pH 6, being attributed to the interaction between -NH 2 group and free Mg 2? ions released from Mg(OH) 2 nanoparticle due to partial dissolution. The overall peak intensity of -NH 3 ? groups decreased from pH 2 to pH 6 before and after neutralization, being accompanied by the deprotonation of -NH 3 ? induced by the added Mg(OH) 2 , and immersion in 1 M NaOH. Due to deprotonation of -NH 3 ? , the peak intensity of -NH 2 increased, especially after films neutralization with NaOH.
For the spectrum of O1s (Fig. 4b), the band of the neat CS film was composed of two sub-bands, which are attributed to the existence of R-OH, or bound H 2 O (532.3 eV) and the -O-in the ring and possibly -Obetween the rings (530 -531 eV) which exist in CS structure (Rashid et al. 2015). After neutralisation, no significant difference was observed among the O1s spectrum of different films.
The spectrum at Fig. 4c showed two additional peaks at around 89 eV and 51 eV, assigned to Mg 2s and Mg 2p , respectively. The Mg2p level is close to the valence band and, therefore, it is easy to observe changes in the valence band and to identify the valence state for this element. In this case, a shift to higher binding energies occurs when a valence electron is lost because the bonds become stronger, i.e., anions have lower binding energies than atoms. Therefore, for the Mg2p peaks, it is inferred that the peak at higher binding energy is related to MgCO 3 or dioxygen species, such as MgO 2 . The specimens present an additional peak at approximately 49-50 eV which is attributed to MgCl 2 and 51.4 eV, which is associated with crystalline Mg(OH) 2 , that might be reformed during neutralization with NaOH and subsequent washing which was observed in traces with SEM micrographs.
Contact angle (CA) data Figure 5 demonstrate absorption of water droplets captured at a different time until complete drop disappearance, and respective CA values (°) for films, before and after neutralization with 1 M NaOH. After 60 s, the CA was around 60°for CS film, 80°for CS/ Mg(OH) 2 _pH4 film and 90°for CS/Mg(OH) 2 _pH6 film. Moreover, the rate of droplet deformation and disappearance from film surface decrease by CA increment, and drop remain longest on CS/Mg(OH) 2 _-pH6 films, i.e. 6 and 8 min, without and with film neutralization, respectively. The same indicates that the addition of Mg(OH) 2 , as well as neutralization with 1 M NaOH, reduce the hydrophilicity, probably due to re-packaging of CS polymer chains at neutralization, as already traced by FTIR as increment in hydrophobic moiety vibrations. Another important factor which reduces the contact angle and resistance of droplet onto the film is the surface roughness and presence of voids, which were observed in CS films. Nonetheless, the same trend remains after the neutralization with 1 M NaOH (i.e. lowest angles measure in CS films), when voids were not present and membranes were significantly flattened, which eliminate the surface roughness factor on CA.
Crystallinity XRD patterns of CS and CS/Mg(OH) 2 films, before and after neutralization with 1 M NaOH are present in Fig. 6. CS and CS/Mg(OH) 2 _pH 4 films showed peaks between 10°and 12°and between 23°and 25°being typical fingerprints of semicrystalline CS, corresponding to hydrated and anhydrous crystal structures of CS, respectively (Ogawa et al. 2004). Additional shoulder * 10°in CS/Mg(OH) 2 _pH 6 may indicate interaction of CS (the hydrated crystals) with Mg(OH) 2 , introducing a higher degree of crystallinity within the film (Mohanasrinivasan et al. 2014). Indeed, the typical crystalline peaks for Mg(OH) 2 were not observable at 38°(101), 51°(102) and 58°(110), which suggest dissolution of Mg(OH) 2 nanoparticles and their re-precipitation within the film, as demonstrated by FTIR, which cause rearrangement and even increase in overall crystallinity of the system, from 52.1% in CS to 62.6% in CS/Mg(OH) 2 _pH6.
After neutralization with 1 M NaOH, we can observe a significant increment in film crystallinity.
By NaOH neutralized CS and CS/Mg(OH) 2 _pH4 films showed the high intensity of diffraction peaks around 2h = 10°, 15°, and 20°with the small shoulder at 2h = 23°. Peaks at 2h = 10°and 20°correspond to CS crystal I and crystal II structure, whereas the peak at 2h = 15°indicated on anhydrous polymorph in CS films. The most intense crystallinity peaks at 2h = 10°, 19°and 20°, with almost no peak at 15°were obtained for CS film prepared from CS solution of pH 6.0 after neutralization with 1 M NaOH.
In line with results by Takara (2015), two hydrated and anhydrous polymorphs can be identified with CS films after treatment with NaOH. The latter cause repacking of CS polymer chains into more regular structure and formation of the new hydrogen links. Presence of Mg(OH) 2 in higher quantity (pH6) has obvious contribution in crystal patterns, supporting formation of hydrated polymorph, while diminishing the anhydrous polymorph formation.
Oxygen transmission rate (OTR) and oxygen permeability (OP) When application as packaging materials is considered, the oxygen transmission rate and oxygen permeability are very crucial parameters, due to the detrimental effect of oxygen on the food quality and their shelf life. As can be seen within Table 2, the OTR and OP values were significantly reduced by Mg(OH) 2 addition, as well neutralization with 1 M NaOH. OTR values of films before neutralization decline from 5300 cm 3 m -2 day -1 in neat CS, down to 7 cm 3m -2 day -1 at in CS/Mg(OH) 2 _pH6. The same trend was seen in OP data. The neutralization with 1 M NaOH even further reduced both parameters, most probably due to the higher crystallinity, which hinders the diffusion of oxygen molecules through the film. Indeed, the diffusion energy required for gas to pass through the high crystallinity film is higher than that of the low crystallinity or non-crystallinity film, and the Fig. 5 Contact angle data and respective images for neat CS films at pH 2 and CS/Mg(OH) 2 composite films at pH 4 and pH 6, measured before and after neutralization with 1 M NaOH.
Data were taken at time intervals, starting from 5 s up to complete water drop adsorption within the film diffusion coefficient was small, so it showed a better gas resistance (Liu et al. 2020). Prepared CS/Mg(OH) 2 composite films demonstrate a very high barrier to oxygen, and excellent performance, especially when comparing to commercial synthetic polymers (OP of polypropylene is 50 000-100 000 cm 3 lm m -2day -1 atm -1 , polyethylene is 50 000-200 000 cm 3lm m -2 day -1 atm -1 , polyethylene terephthalate 1000-5000 cm 3 lm m -2 day -1 atm -1 ) (Wang et al. 2018).

Water vapour permeability (WVP)
The reduction of moisture transfer between the food and the surrounding atmosphere, or between two components of a heterogeneous food product is desirable, and low WVP is appropriate for food packaging films (Adjouman et al. 2017). Figure 7 display WVP data for the films library, at 50% and 64% relative humidity (RH). At higher RH, the permeability of films was lower, which maid be the consequence of hydration of films, closing the pores able 2 Oxygen transmission rate (OTR) and oxygen permeability (OP) of CS films at pH 2, 4 and 6 before and after neutralization with 1 M NaOH Sample OTR (cm 3 m -2 day -1 ) OP (cm 3 lm m -2 day -1 atm -1 )  (Garcia et al. 2000), and even some synthetic films, such as cellophane (8.4 9 10 -10 gÁm/Pa s m 2 ), but higher than low-density polyethylene and high-density polyethylene, which have * 2 orders of magnitude lower values as an excellent water vapour barrier films. The values are also low compared to certain emulsified films, for example, hydroxypropyl methylcellulose with plasticizer and oil, cassava starch and 15% glycerol with hydrogenated vegetable oil, and agar, 15% glycerol and hydrogenated vegetable oil, etc (Adjouman et al. 2017). Due to the presence of hydrophilic domains of CS film, the water vapour was more easily absorbed, and the diffusion step was improved substantially (Liu et al. 2020). Lack of plasticizers positively contributes to water vapour permeability of films, as the hydrophilic nature of these components usually eases the water vapour diffusion, increasing the water vapour permeability concerning pure CS films (Cazón and Vázquez 2020). Packaging films should maintain moisture levels within the packaged product. Therefore, the knowledge of moisture content is another important parameter for food packaging applications (Wang et al. 2011). Table 3 insert within Fig. 7 display moisture content of CS films, indicating similar values for films before neutralization at different pH, being around 20%. The films treated with 1 M NaOH demonstrate the superior resistance to moisture than films before treatment, irrespective of pH, again, as a consequence of increased crystallinity, as well as surface groups orientation.

Mechanical properties
Mechanical properties of CS film are closely related to DD and M W of polymer, CS percentage at preparation, solvent, drying temperature (Homez-Jara et al. 2018), etc. Herein, we exclude any addition of plasticizer, or crosslinker and monitor the effect of Mg(OH) 2 addition and neutralization with 1 M NaOH on the mechanical response of the films under tensile test.
The values of elastic modulus, tensile strength, and elongation at break for different CS films are shown in Table 4. These results indicated that elastic modulus increased after neutralization with 1 M NaOH in all films, causing film brittleness, where the most brittle film was CS/Mg(OH) 2 _pH6, having twice higher E-modulus (around 12 MPa) than neat CS film. This result goes ahead with an increase of crystallinity, following the same trend. Oppositely, tensile strength and elongation at break decreased after neutralization due to decreased flexibility of the films. This was not the case only for films with the highest tensile strength and elongation at break (CS/Mg(OH) 2 _pH4), which even improve after neutralization (nCS/Mg(OH) 2 _-pH4), suggesting on strong interaction among CS groups and Mg(OH) 2 in this combination. Results are in correlation with SEM observation, where the structural integrity of the films was observed after the addition of the Mg(OH) 2. The addition of higher content of Mg(OH) 2 do not further improve, but only contribute to discussed film brittleness as the system  Thermal properties Differential scanning calorimetry (DSC) and thermogravimetric analysis (TGA) are complementary tools, used for demonstration of changes in thermal stability by the inclusion of Mg(OH) 2 and neutralization with 1 M NaOH. Figure 8a,b summarize the parameters of two main thermal transitions, extracted from thermograms, i.e. temperature of transition (main peak,°C), with respective energy (mJ/mg) and weight loss (%).
The first, endotherm related to the evaporation of absorbed water, vary between 80 and 100°C among films (Fig. 8a). A significant difference of energy used for this transition was observed, reducing with pH increase in films without subsequent neutralization. This is an indication of the reduced amount of adsorbed water due to increased hydrophobicity, as already demonstrated by contact angle measurement, as well as WVP data. This trend has vanished in films treated with 1 M NaOH, which was not the case with the second, exotherm transition related to degradation. The latter comes from the split of the glycoside bonds and decomposition of amine residues and occurs  (Fig. 8b). Degradation temperature shifts to higher values with Mg(OH) 2 addition, while keeping constant after neutralization with 1 M NaOH. Even so, the energy of exotherm transition was higher in both cases, indicating improved thermal stability, where more energy is required to completely decompose films, especially in sample nCS/Mg(OH) 2 _pH6.
To have a look at the behaviour of the films when they are exposed to open flame, the photographs were taken according to the procedure adapted from (Gorgieva et al. 2020). As can be seen from photographs in Fig. 8c, the chair formation was observed in all films and almost complete charring was demonstrated by 1 M NaOH-treated films. Besides, the presence of Mg(OH) 2 , even small, demonstrate a reduction of burning, especially in the case of a film with higher content of this agent. In neat CS films, half of the membrane was burned, while Mg(OH) 2 presence reduce the burned surface to 1/3, evidencing a self-extinguishing behaviour. Mg(OH) 2 is a known flame retardant agent, which decomposes endothermically when heated, and the gaseous water phase is believed to envelop the flame, thereby excluding oxygen and diluting flammable gases, also forming the heat insulating material on the surface of the film reducing the flow of potentially flammable decomposition products to the gas phase where combustion occurs. It can be assumed that Mg(OH) 2 contributes to thermal stabilization of films, while additional treatment with 1 M NaOH only progresses the degradation of films by charring.

Conclusion
Aqueous acidic-CS solutions can be efficiently neutralized by the addition of alkaline Mg(OH) 2 nanoparticles, without causing inhomogeneous gelation of the polymer. This is not possible by the quick addition of NaOH to CS solutions where heterogeneous gelation occurs that cannot be redissolved during the process. This method, therefore, offers the possibility to adjust the pH value of the CS solutions before casting into sheets by drying. This allows for controlled deprotonation of the primary nitrogen present on the polymer and the simultaneous formation of magnesium chloride salt. There are particular differences in the properties of films that are cast from solutions comprising different pH values. Acidic CS solutions are relatively non-transparent whereas films cast from higher pH values are less opaque. More importantly, films cast at higher pH values show very significantly lower oxygen transmission rates in the dry state (OTR 7 ± 1 cm 3 m -2 day -1 ) far below standard synthetic packaging materials. This is attributed to either the efficient embedding of the nanoparticles into the polymer acting as an additional barrier material, or to a tighter packing of the polymer chains due to deprotonation of the nitrogen before film formation. X-ray scattering data also suggests a higher crystallinity of the filled and neutralized films, whereas also wetting and water content are lower for those that are less protonated. Films prepared by this method can in addition be neutralized by NaOH solutions after drying. This leads most likely to the reformation of Mg(OH) 2 from the MgCl 2 present initially as confirmed by X-ray photoelectron spectroscopy. It however does not reduce OTR values. Neutralization however reduces water vapour permeability. The methods presented here allow fine-tuning the precipitation of CS from solution and more sophisticated versions of such approaches might lead to nanocomposites with even higher-order and unexpected properties.
Funding The Financial support was received from the Slovenian Research Agency Young Researcher Program (P2-0118/0795), the project »Graphene Oxide-based MEAS for the Direct Ethanol Fuel Cell« (Grant Number N2-0087) and the Textile Chemistry Program (P2-0118).
Availability of data and material Data available from the author on the request.

Declarations
Conflict of interests The authors declare that they have no conflict of interest.
Consent for publication All authors agreed to the publication in the submitted form.
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.