Introduction

Globally, water pollution is a crucial issue that concerns the human population. Large amounts of wastewater are generated daily by industrial, agricultural, and domestic activities and deposited to the land or water receptors. At the present time, the continuous discharging of effluents into water resources from industrial processes, such as textiles, rubber, cosmetics, paper, and leather, has led to the spread of toxic and carcinogenic compounds in aquatic bodies. This continuous discharging of effluents would affect human health and environmental equilibrium1,2. Hazardous organic and inorganic wastes such as dyes and heavy metals, have toxic effects and may even cause cancer. So, it is vital to keep the levels of both dye and heavy metals at their allowed limits in water resources3,4.

Synthetic dyes are used in numerous manufacturing processes as pesticides, varnish, petrochemical, electroplating, and food industries. Their discharge without any treatment leads to a series of environmental problems and growing global concerns5,6. These dyes are non-biodegradable in the aquatic systems because of their synthetic nature and aromatic structure. This leads to limitations of photosynthesis process as they are mutagenic substances. Therefore, it is essential to remove these substances from the discharged wastewater before reaching the receiving waterbodies7. Food dyes such as Sunset Yellow (E110) and Azorubine (E122) belong to the azo dye category. These dyes have excellent chemical stability, good solubility in water, high color and a complex aromatic structure. These characteristics would complicate their decay under natural conditions8. Sunset Yellow and Azorubine are derived from petroleum, and widely used in most food products, including juices, soft drinks, candies, jellies, and salty snacks, to give coloring9. The presence of these food coloring substances decreases the aesthetic value of an aquatic system, contributes to higher chemical oxygen demand (COD), and influences the passing of light10,11. Additionally, these dyes have harmful effects on human health as their metabolites are mutagenic, carcinogenic, and are hyperactive in children12.

Heavy metals are of considerable environmental concern due to their toxicity, multiple sources, nonbiodegradable properties, and accumulative behaviors. Excessive pollution of soils by heavy metals results in the metals being introduced into the food chain through plants and water. This represents a potential risk to human health13,14. Chromium is considered to be the most lethal heavy metal. The trivalent (III) and hexavalent (VI) forms of chromium are the two major oxidation states in which Chromium might occur. Cr(VI) is much more carcinogenic15,16. The industrial sources of Cr(VI) mainly include alloy and steel manufacturing, metal finishing, electroplating, leather tanning, pigments and dyeing industries. Chromium (VI) compounds, e.g. sodium chromate and potassium dichromate, are water-soluble. They exhibit adverse effects on the human respiratory system and skin. Moreover, they are found to be carcinogenic in several human organs such as the lungs, stomach, nose, and respiratory system. Also, it has aquatic toxicity17,18,19. Hexavalent chromium is nephrotoxic and tumorigenic. It has been reported in experimental animals that the hexavalent form of chromium can affect bone formation in fetal development. The mechanisms for this effect have yet to be elucidated; however, it is suggested that the potent peroxidant properties of hexavalent chromium may be involved. Animal studies have revealed a deficiency in lactation and male sterility resulting from hexavalent chromium exposure20,21.

Many treatment technologies are employed for the removal of pollutants from wastewater like coagulation22, solvent extraction23, ion exchange24, flotation25,26,27, cloud point extraction28, liquid–liquid extraction29, photocatalytic degradation30,31, and adsorption32,33,34,35,36,37,38. Adsorption is considered to be one of the best methods for removal of contaminants from wastewater due to its efficiency, the ease and low cost of the operation compared to other processes. A wide range of organic and inorganic adsorbents are used including zeolites, activated charcoal, clays, chitin, and polymers39,40.

Polymers have been regarded as a good tool to minimize the environmental impact. Among them, polysaccharide-based materials such as cellulose and its derivatives, chitosan, alginate, and carrageenan have been extensively applied as adsorbents owing to distinctive advantages such as easy availability, renewability, biodegradability, cost-effectiveness, and safety41.

Chitosan (CS) is a natural adsorptive polymer obtained from the deacetylation of chitin. It has an affinity towards pollutants in wastewater because it has amino (–NH2) and hydroxyl (–OH) groups. Chitosan is non-toxic, hydrophilic, biocompatible, and biodegradable. As chitosan molecules contain a large number of active amine (–NH2) groups, they have good have chelating properties and excellent adsorption capacity for both anionic dyes and heavy metal ions42,43,44. The uptake of heavy metals and dyes by chitosan has been investigated in many studies. To improve chitosan adsorption capacity, several chemical modification methods like cross-linking and new functional groups insertion, have been performed. Recently, surfactant-modified adsorbents were employed as clay, biomass, and chitosan. Consequently, surfactant modification on chitosan for the adsorption of hazardous compounds was applied45,46.

Surfactants are amphiphilic molecules containing two distinct parts: hydrophilic and lipophilic groups. They can be broadly defined as compounds that alter the energy relationships at interfaces, often in terms of altering either the surface or interfacial tension. Therefore, surfactants were used in the modification of many adsorbents. Examples of such surfactants include sodium dodecyl sulfate (SDS), sodium lauryl, and Cetyl trimethyl ammonium bromide (CTAB)47. They are used as stabilizers for adsorbents (surface modifiers) and show affinity to react with their surface.

The protonated amino groups of chitosan can produce strong electrostatic attraction with anionic species which makes chitosan a promising adsorbent for the treatment of these species. Unfortunately, chitosan has poor mechanical properties and low stability and it is too difficult to separate it from a solution which limits the application of this material in water treatment technologies. So, chitosan crosslinking and modification is so important in order to increase its capacity toward anionic species and make it an applicable material in the process of water treatment (Huo et al. 2021). CTAB surfactant is a cationic surfactant that exhibits good surface activity, antibacterial activity, and stability in both alkaline and highly acidic mediums.

Babazadeh et al. recently reported the role of surfactant modified chitosan-clinoptilolite composite in the batch and continuous adsorption systems for removal of anionic dyes (methyl orange)48. Furthermore, the efficiency of sodium lauryl sulfate modified chitosan in the inhibition of corrosion was investigated by Jessima et al.49.

In general, chemical and physical modification of adsorbents by surfactants aims to enhance the ability of these adsorbents to remove pollutants and achieve higher efficiency50. Cetyl trimethyl ammonium bromide (CTAB) is a cationic detergent, soluble in H2O, less toxic, highly biodegradable surfactant than other surfactants and has stability in both alkaline and highly acidic mediums51. Recently, CTAB supported organoclay has been successfully used to remove organic and inorganic pollutants from aquatic solutions [Mostafa & Akl]. Hence, CTAB is used for modification of chitosan to enhance its adsorption capacity towards adverse pollutants including anionic dyes such as (E110 and E122) and also heavy metals such as Cr(VI).

As of now, very little work has been reported on the use of CS@CTAB for the removal of anionic species like Cr(VI), Azorubine and Sunset Yellow FCF dyes from aquatic solutions.

The primary purposes of this study are:

  1. i.

    Preparation of the CTAB modified chitosan.

  2. ii.

    Characterization of the structural, surface functional groups and surface potential, textural, and morphological properties of CS and CTAB–modified CS with the help of various techniques viz. FTIR, N2 adsorption–desorption isotherm, elemental analysis, thermogravimetric analysis, XRD, and SEM.

  3. iii.

    To study the optimum conditions for removal of E110, E122, and Cr(VI) by CS@CTAB like contact time, initial pH of the E110, E122, and Cr(VI) solutions, (E110, E122, and Cr(VI)) concentration, and reaction temperature.

  4. iv.

    Analysis of the experimental data with various (Langmuir and Freundlich) isotherms and (pseudo-first-order and pseudo-second-order) kinetic model equations.

  5. v.

    Investigating the desorption experiments using different eluents; NaOH, HCl, CH3COONa, ethanol, Na2CO3, and EDTA.

  6. vi.

    Elucidation of the plausible mechanism of adsorption of the studied anionic species onto CS@CTAB.

Experimental

Materials

Chitosan (CS) was purchased from TECHNO PHARMACHEM, INDIA, with a deacetylation degree of 75%, glutaraldehyde 25% (≥ 98%), glacial acetic acid (> 99%), cetyltrimethylammonium bromide (CTAB) with a chemical formula of C19H42BrN and molecular weight of 364.46 g/mol as the surfactant. The used chemicals are NaOH, EDTA, CH3COONa, HCl, Ca (NO3)2, NaCl, Na2CO3, K2Cr2O7, ethanol, Sunset yellow FCF (E110), and Azorubine (E122) anionic food dyes. All these chemicals were obtained from Sigma Aldrich and were analytical grade.

Preparation of chitosan modified CTAB (CS@CTAB)

The synthesis of CTAB-modified CS was conducted by the following procedure48,49. 2 g of CS were first dissolved in 200 mL of distilled water with 2% acetic acid for 1 h at room temperature using a magnetic stirrer and then left to settle down. Afterwards, 1 g of CTAB was added with stirring for 3 h at 50–60 °C. Finally, glutaraldehyde was gradually added (equals 10% of chitosan weight) to the solution mixture and was mechanically stirred for 30 min in order to be homogenized. Eventually, the solution mixture was poured into 1 M NaOH to precipitate the prepared CS@CTAB as represented in Fig. 1. The quantity of CTAB in the CS@CTAB was calculated and it was found to be 26.26% (wt.).

Figure 1
figure 1

Preparation of CS@CTAB.

Characterization

A Perkin Elmer 550 spectrophotometer was used for the determination of the concentration of K2Cr2O7, anionic dyes in single and multi-components systems over a range of 200–900 nm using quartz cells. The λmax was found to be 486 nm for E110, 518 nm for E122 and 427 nm for K2Cr2O7. The specific surface area of the CS and CS @CTAB materials was obtained using the Brunauer Emmet Teller (BET) analysis (Size Analyzer (QUANTACHROME—NOVA 2000 Series). Elemental analysis of CS, CS@CTAB was performed using a Costech (ECS-4010) elemental analyzer. Surface morphology of native CS and CS @CTAB was investigated using a JSM-6510LV model. The IR spectra of native CS and CS@CTAB, before and after adsorption of anionic species, were investigated by a Perkin-Bhaskar-Elmer Co., USA. Samples were grounded and mixed with KBr and then pressed in pellet form. X-ray diffraction (XRD) patterns of the CS and CS@CTAB materials were attained by means of PAN analytical X’Pert PRO diffractometer using the 2-theta (2θ) which ranged from 4° to 70°. The thermal stability of CS and CS@CTAB was inspected using thermogravimetric analysis (Berkin Elmer TGA 4000) on a heating rate from 30 to 900 °C of 15 °C/min. The concentrations of analytes before and after adsorption were measured spectrophotometrically using a Jasco UV–Vis spectrophotometer (model V-530, Japan). The point of zero charge (pHPZC) of CS@CTAB was determined as follows: 0.1 g of the CS@CTAB adsorbent was added to a 25 ml of pH-adjusted NaCl (0.01 M) solution that varied from 2 to 12 and the mixtures were allowed to shake at the equilibrated shaker for 48 h. 0.1 M of HCl and 0.1 M of NaOH were utilized for NaCl pH adjustment. After the shaking, the final pH was recorded and ΔpH was measured as in the following equation (ΔpH = pHi − pHf) and was plotted against the initial pH (pHi). The pHpzc value is the cross point where the curve ΔpH versus pHi crosses the line ΔpH = 0.

Adsorption and regeneration procedures

Batch tests

1000 ppm of stock solution of each investigated pollutant (E110, E122, and Cr(VI)) was prepared by dissolving 1.0 g of the dye or metal salt in 1000 mL of double-distilled water (DDW) to attain the required concentration. The adsorption experiments were carried out using 0.005 g of CS@CTAB in 25 mL dye solution at various experimental parameters such as concentration (50–250 ppm), pH (2.0–9.0), temperature (25–45 °C), adsorbent dose (0.005–0.03 g), contact time (15–300 min), and ionic strength. The amount of remaining pollutant in the solution was detected by UV–vis spectra at the specified wavelengths of 486, 518, and 427 nm for E110, E122, and K2Cr2O7, respectively.

The removal percentage (R,%) and adsorption capacity (qe) of anionic species were calculated as represented in Eq. (1) and Eq. (2), respectively:

$$R\left( \% \right) = \frac{{C_{i} - C_{f} }}{{C_{i} }} \times 100$$
(1)
$$q_{e}= \frac{{\left( {C_{i} - C_{f } } \right) \times V}}{m}{ }$$
(2)

where Cf and Ci, (ppm) are the equilibrium and the initial dye concentrations, respectively. While V is the volume of analyte solution (L) and m is the weight (g) of CS@CTAB52.

Batch experiments for pollutants in the binary system

To investigate the efficiency CS@CTAB in the studied anionic species in binary systems, batch experiments were performed using 0.005 g of CS@CTAB in 25 ml of each binary system solutions with 50 ppm of each pollutant at pH 3 with shaking at 120 rpm for specified periods. Maximum adsorption of each binary systems was recorded every hour over a period of 6 h.

Desorption studies

Pollutants (E110 and E122) and Cr(VI) were adsorbed on the CS@CTAB surface. Then, desorption of such pollutants was investigated by applying a variety of eluents including sodium hydroxide (0.1 mol/L), Na2CO3 (1 mol/L) with and without heating, sodium acetate (0.1 mol/L), ethanol, and hydrochloric acid (0.2 mol/L). The batch technique was employed to study the regeneration of CS@CTAB over five repeated cycles of the adsorption–desorption procedure. For (Cr(VI), E110, and E122), 0.005 g of CS@CTAB was shaken in 25 ml of (100 ppm for E110, E122, and Cr(VI)) for 240 min. After that, the CS@CTAB was filtered and washed. Consequently, desorption step was carried out by utilizing 0.005 g of CS@CTAB-E110, CS@CTAB-E122, and CS@CTAB-Cr(VI) and in 25 ml Na2CO3 (1 mol/L); then shaking for 2 h at 45 °C. This process was performed for four more times. Using Eq. (3), the desorption efficiency[D,%)] of pollutants under investigation, was estimated:

$$Desorption \% = \frac{{amount\,\,desorbed\,\,to\,\, the\,\,solution\,\,(mg{/}l)}}{{amount\,\,adsorbed\,\,on\,\,CS@CTAB\,\,(mg{/}l)}} \times 100$$
(3)

Isothermal, kinetics and thermodynamics studies

Initial concentration and isothermal studies

Isothermal studies for E110, E122, and Cr(VI) were investigated by the addition of 0.005 g CS@CTAB adsorbent to a set of bottles containing E110, E122, and Cr(VI) solutions to be adsorbed. They initially contain between 50 and 250 ppm. For E110, E122, and Cr(VI), the latter bottles were shaken in a thermostated shaker at 150 rpm for 240 min at 25 °C. The isothermal models of Langmuir and Freundlich were used in linear form and estimated as given in Eqs. (4) and (5). A crucial parameter is the Langmuir separation factor (RL), which is stated in Eq. (6), is utilized to determine adsorbent-sorbate affinities. The meaning of RL values can be illustrated as follows: if its value is larger than 1, it shows that the researched adsorbent is not suitable, while if its value lies between 0 and 1, it shows that the used adsorbent is suitable.

$$\frac{{C_{e} }}{{q_{e} }} = \frac{1}{{k_{L} q_{m} }} + \frac{{C_{e} }}{{q_{m} }}$$
(4)
$$\ln q_{e} = \ln K_{f} + \frac{1}{n} ln C_{e}$$
(5)
$$R_{l } = \frac{1}{{1 + K_{l} C_{o} }}$$
(6)

As, Ce (ppm) is the concentration of pollutant (E110, E122, and Cr(VI)) at equilibrium, qe (mg/g) is the adsorption capacity of pollutant at equilibrium, qm (mg/g) adsorption maximum amount, 1/n is the heterogeneity factor, while KL (L/mg), KF (mg/g), and K are Langmuir, Freundlich constants.

Two kinetic models, pseudo-1st-order and pseudo-2nd-order, given in (Eqs. (7) and (8) respectively, were used in kinetic studies for the evaluation of the adsorption rate-limiting step. The experiments were carried out utilizing 25 ml (100 ppm of E110, E122, and Cr(VI)) and 0.005 g of CS@CTAB at the optimum pH for each pollutant. The mixture was shaken at room temperature with a constant speed of 150 rpm for different contact times ranging from 15 to 300 min.

$$\frac{1}{{q_{t} }} = \frac{{K_{1} }}{{q_{{e^{t} }} }} + \frac{1}{{q_{e} }}$$
(7)
$$\frac{t}{{q_{t} }} = \frac{1}{{K_{2} q_{{e^{2} }} }} + \frac{t}{{q_{e} }}$$
(8)

The adsorption efficiency for examined pollutants at equilibrium and at a specific time t (min) are stated as qe (mg/g) and qt (mg/g), respectively. Besides K1 and K2 are constants for pseudo-1st-order and pseudo-2nd-order, sequentially.

Temperature and thermodynamics

In a balanced shaker running at a constant speed of 150 rpm for 240 min, a set of 50 ml stoppered bottles holding 25 ml of pollutant solution (100 ppm) for [E110, E122, and Cr(VI)], 0.005 g of CS@CTAB at varying temperatures (298–318 K) and ideal pH value for each pollutant, were shaken. After adsorption and filtering, the concentration of remaining (E110, E112, and Cr(VI)) was detected. The following equations (Eqs. (9) and (10) describe the thermodynamic parameters viz. adsorption enthalpy (ΔHo), free energy (ΔGo), and entropy (ΔSo)); ΔSo and ΔHo were estimated from intercept of Eq. (10), which equals ΔSo/R, and slope, which equals -ΔHo/R of Ln Kc vs. 1/T. The universal gas constant (R) is equivalent to 8.314 J/mol K.

$$\Delta G^{o} = { } - RT\ln K_{c}$$
(9)
$$\ln K_{c} = \frac{{\Delta S^{o} }}{R} - \frac{{\Delta H^{o} }}{RT}$$
(10)

Applications in real samples

Natural water samples

To investigate the applicability of CS@CTAB, different water samples including (Tap and seawater) were employed for the adsorption of E110, E122, and Cr(VI) in (100 ppm). In advance of the spiking of the pollutants, the natural water samples were digested by the addition of 0.5 g of K2S2O8 and 5 ml H2SO4 98% (w/w) to 1000 ml of water sample and heated for 120 min at 90 °C for complete digestion of organic materials. After cooling to room temperature, 0.005 g of CS@CTAB was introduced to these samples, and the appropriate pH value for each pollutant was set with continuous shaking for 240 min for E110, E122, and Cr(VI). The solutions were centrifuged and another 0.005 g of CS@CTAB was introduced to the supernatant to guarantee the complete separation of analytes. The remaining of each of E110, E122 and Cr(VI) was determined using a Unicam UV 2100 UV/Visible spectrometer at appropriate wavelengths.

Industrial samples and colored soft drinks

In order to remove E110 and E122 from degassed carbonated beverages and jelly, CS@CTAB was utilized. Initially, the carbonated beverages (an orange beverage with E110 dye and a pomegranate beverage with E122 dye) were degassed by leaving them in the air at 25 °C for 120 min. After being digested (which means the breakdown of unwanted substances in the sample) using acetic acid (4%), the strawberry and orange-flavored jelly was dissolved in DDW53,54. For E110 and E122, CS@CTAB (0.005 g) was introduced to each sample, and the optimum pH for each dye was set with constant shaking for 240 min. Using the Unicam UV 2100 UV/Visible spectrometer at the proper wavelengths, the residual E110 and E122 was identified.

Result and discussion

Materials' design

Figure 2 represents the CS@CTAB synthesis steps, adsorption of the three investigated anionic pollutants and their determination. Moreover, the application of the prepared CS@CTAB on real (soft drinks) samples is included.

Figure 2
figure 2

Systematic steps for adsorption technique.

Characterization

N2 adsorption/desorption isotherm Brunauer–Emmett–Teller (BET) analysis

The surface area of the pure chitosan and CS@CTAB were analyzed using the BET method, Fig. 3. The results, presented in Table 1, show that the BET surface area of pure chitosan increased from 7.876 to 492.133 m2/g in CS@CTAB. The increase in the surface area of an adsorbent leads to enhancing the chitosan adsorption capacity for the pollutants.

Figure 3
figure 3

BET of: (a) Chitosan, and (b) CS@CTAB.

Table 1 BET analysis of CS and CS@CTAB.

Elemental analysis

The elemental analysis was evaluated for CS and CS@CTAB materials to prove the modification step. The results, presented in Table 2, show a decrease in the nitrogen percentage from 7.5 to 6.3606% in the CS@CTAB sample with an increase in carbon atom percentage from 44.1% to 57.0178% and hydrogen atom percentage from 6.0377 to 9.1308%. The CTAB surfactant, with chemical formula C16H33N(CH3)3, its reaction with the chitosan resulted in the insertion of a long carbon chain with one nitrogen group, which led to a decrease in the nitrogen percentage in the modified material. So, these results prove the formation of the CS@CTAB material by reacting chitosan with CTAB in the presence of glutaraldehyde.

Table 2 Elemental analysis of CS and CS@CTAB.

Morphology

Figure 4 demonstrates SEM micrographs for CS (Fig. 4a,b) and CS@CTAB (Fig. 4c,d). These micrographs show that CS@CTAB has a dissimilar morphology to native CS. SEM micrographs of CS show smooth and regular surface topology, while CS@CTAB offers a much rougher and irregular surface structure. The SEM outcomes prove that the modification of CS increased the number of pores and produced a rougher surface. Based on SEM micrographs, the aromatic rings on the CS structure cause adverse surface topology along with high porosity and surface roughness when compared to native CS55.

Figure 4
figure 4

SEM images of: (a, b) Chitosan and (c, d) CS@CTAB.

FT-IR spectra

The IR spectrum of CS, Fig. 5a, demonstrates a broad peak centered at 3450 cm−1 assigned to the stretching vibration of the -OH, -NH2 groups and to intramolecular and intermolecular hydrogen bonding. The peaks at 2930 cm−1, 2884 cm−1, 1427 cm−1, 1381 cm−1, and 1321 cm−1 are due to stretching and bending vibration of C–H of –CH3, and –CH2 groups. The peak at 1653 cm−1 is due to stretching vibration of –C=O in –NHCO, whereas the peak at 1603 cm−1 is due to -NH bending vibration of NH2. Other peaks at 1155 cm−1, and 1090 cm−1 correspond to the –C–O bending.

Figure 5
figure 5

IR spectra of: (a) Chitosan, and (b) CS@CTAB.

On the other hand, the IR spectrum of CS@CTAB, Fig. 5b, shows the following peaks: a peak at 3450 cm−1 appears to be less broad and sharper due to the reaction of the –NH2 group with CTAB and glutaraldehyde so this peak only describes the –OH group. The peaks at 2856 cm−1 and 2923 cm−1 are due to the –CH groups, those peaks increased in intensity and sharpness due to the increase in –CH2 groups as a result of introducing CTAB molecule which contains 16 additional –CH2 groups. Whereas the peak at 1748 cm-1 is due to –C=N that appeared as a result of addition of glutaraldehyde. The peak at 1462 cm−1 appeared to be due to the presence of -CH alkane groups introduced by the addition of CTAB surfactant. The other peak at 1257 cm−1 is due to the –C–N amine interaction56.

Thermogravimetric analysis (TGA)

Figure 6 reveals the several stages of weight loss characteristic of CS; the initial one was between 35 and 100 °C denoting the dehydration of the polymer. The subsequent stage was between 235 and 400 °C, which is characteristic of the breakage of the CS chain, depolymerization, and decomposition of the acetylated and deacetylated parts. The last phase was between 410 and 710 °C; marking the degradation of the products created via the preceding incident57,58,59.

Figure 6
figure 6

Thermal gravimetric analysis of: (a) Raw chitosan, (b) CS@CTAB.

The chief loss presented at temperatures of 175 °C to 400 °C was due to the decomposition of fresh CTAB (which is around 240%) and the liberation of boundless water60,61,62.

X-ray diffraction analysis (XRD)

Figure 7 shows the XRD of both CS and CS@CTAB. The XRD of CS reveals that CS has a low-crystalline composition that can be established via two peaks: one at 10.26°, which is linked to the hydrated low-crystalline composition, and the other at 20.165°, which is a result of the amorphous state of the material. These peaks were found to be distinctive to the raw CS diffractogram; they also suggested the formation of intra- and intermolecular hydrogen bonding in addition to the existence of the free NH2 groups in the raw CS composition61.

Figure 7
figure 7

XRD patterns of: CS and CS@CTAB samples.

The XRD of CS@CTAB displayed no considerable diffraction peak in XRD, with the exception of that at 20.885°. Consequently, CS@CTAB displays amorphous features that are dissimilar to those of its main constituents60.

Scherrer’s equation is represented in Eq. (11):

$$D = \frac{K\lambda }{{\beta \cos \theta }}$$
(11)

where D is the nano crystallite size. K is a constant related to crystallite shape, normally taken as 0.9. β is the peak width of the diffraction peak profile at half maximum height (FWHM) resulting from small crystallite size in radians. λ is the X-ray wavelength in nanometer (nm).

By calculating the value of D for both raw and modified chitosan the values were found to be 1.734 and 17.23, respectively63.

Adsorption studies

Point of zero charge (pHPZC)

The point of zero charge (pHpzc) is generally described as the pH at which the net charge of the adsorbent's surface is equal to zero in an aqueous solution during the adsorption of ionic species. In this study, a plot for pHpzc determination of CS@CTAB is shown in Fig. 8. The CS@CTAB (pHpzc) has been attained by applying the previously published studies. Figure 8 demonstrates the variation of ΔpH value (pHinitial_pHfinal) of CS@CTAB as a function of the pHinitial. The value of the pHpzc of CS@CTAB is found to be 6.85. This illustrates that at pH less than 6.85, the CS@CTAB surface is considered to have positive charges64.

Figure 8
figure 8

Point of zero charge of CS@CTAB.

Effect of pH

The pH effect, which is demonstrated in Fig. 9, is a crucial factor in the removal of environmental pollutants. The effect of pH was carried out by varying the pH in the range of 2.0–9.0 keeping other parameters constant (shaking for 4h, at room temperature, and using a concentration of 100 ppm). It is expected that treatment of CS with the CTAB will lead to the formation of potentially several nitrogen moieties on the CS surface65. Elemental composition evidence (Table 1) indicates a nitrogen of 6.36% (wt%) on the CS@CTAB material, most likely indicating the formation of a variety of more basic nitrogen moieties on the CS@CTAB surface. Nitrogen-based surface functionalities can be seen with the presence of a broad FTIR peak with the midpoint at approximately 3450 cm−1 potentially indicating the presence of a basic amide surface functionality65. Following the adsorption process in the current work, in the CS@CTAB FTIR spectrum after (E122, E110, and Cr(VI)) adsorption the specific peak at 1650 cm−1 disappeared for the three pollutants accompanied by the appearance of S–O and S=O specific peaks for the CS@CTAB-E110 and C@CTAB-E122.

Figure 9
figure 9

pH effect on E122, E110, and Cr(VI) adsorption efficiency on CS@CTAB under optimum conditions (temp.: (25 °C), dose: 0.005 g., conc.: 100 ppm for E110 & E122 and Cr(VI) in 25 ml volume).

Based on experimental data, it was found that the maximum removal efficiency (R %) of Cr(VI) was 99.5 at pH 2 and 99.5 for E110 and E122 at pH 3, but decreased sharply and converged as the solution pH increased (Fig. 9). This is consistent with other batch studies which also reported maximum Cr(VI) adsorption in acidic environments37,66,67 and can be explained by considering the surface charges of the adsorbents and the Cr(VI) adsorbate species68. The surface charge of an adsorbent is determined by pHpzc where an adsorbent surface is neutral at pH = pHpzc, but develops a positive charge at pH < pHpzc and a negative charge at pH > pHpzc. Therefore at pH 2 CS@CTAB had positive surface charges; however, as solution pH increased, the positive charges are reduced and became negative69 once the pH values increased above its pHpzc (pH 6.85), (Fig. 8). In addition, the main ionic forms of chromate at acidic pH (pH 1.0–6.8) are hydrogen chromate (HCrO4) and dichromate (Cr2O72−) with chromate (CrO42−) being predominant at pH > 6.8 and this results in an electrostatic attraction to the positively charged groups present on the adsorbent surface. In contrast, increasing solution pH led to a decrease in the Cr(VI) uptake due to the deprotonation of surface functional groups, along with competition between the Cr(VI) ions and the OH ions to occupy the active sites. Given the enhanced adsorption of Cr(VI) onto CS@CTAB at pH 2 (Fig. 3A), the remainder of this study focused on Cr(VI) removal by CS@CTAB using a pH 2 solution as optimal. Based on the evidence, it appears that the principal binding process is one of an electrostatic interaction between the sulfonyl moieties and the binding Cr(VI) species.

Because of the strong protonation, the adsorbent surface becomes positively charged at low pH. The Cr(VI) adsorption was enhanced due to the electrostatic force between negatively charged HCrO4 and Cr2O7–2 and SO3 of (E110 and E122) and the positively charged adsorbent surface37. Thus, this, in turn, enhances the affinity of CS@CTAB material towards attracting positively charged metal ions and dye molecules depending on pH control, causing the improvement of Cr(VI), E110, and E122 adsorption as shown in the equations below (12) and (13), respectively.

$${\text{CS}}@{\text{CTAB}}^{ + } + \left( {{\text{E11}}0/{\text{ E122}}} \right) - {\text{SO}}_{{3}}^{ - } \leftrightarrow {\text{CS}}@{\text{CTAB}}^{ + } \ldots {\text{SO}}_{{3}}^{ - } \left( {{\text{E11}}0{\text{/ E122}}} \right)$$
(12)
$${\text{CS}}@{\text{CTAB}}^{ + } + \, \left( {{\text{Cr}}\left( {{\text{VI}}} \right)} \right) - {\text{O}}^{ - } \leftrightarrow {\text{CS}}@{\text{CTAB}}^{ + } \ldots {\text{Cr}}\left( {{\text{VI}}} \right) \, \left( {{\text{K}}_{{2}} {\text{Cr}}_{{2}} {\text{O}}_{{7}} } \right)$$
(13)

These results are consistent with other studies presented37,70,71,72.

Effect of dose

The influence of dose of CS@CTAB, Fig. 10, was examined in the range of (0.005–0.01 g), keeping the other parameters constant (shaking for 4 h, at room temperature, using a 25 ml of 100 ppm (E110, E122, and Cr(VI)) and an appropriate pH value for each pollutant). The maximum adsorption capacity for all pollutants took place using 0.005 g of CS@CTAB in 25 ml pollutant.

Figure 10
figure 10

Effect of dose on E122 (100 ppm), E110 (100 ppm), and Cr(VI) (100 ppm) adsorption on CS@CTAB at room temperature for 4 h.

Effect of initial concentration

The effect of the initial concentrations of pollutants on the adsorption of the studied analytes, was investigated in the range of (50-200 ppm) as shown in Fig. 11, using 0.005 g CS@CTAB adsorbent and appropriate pH value for each pollutant while keeping the other parameters constant (shaking for 4 h, at room temperature). From the graph, the adsorption capacity of CS@CTAB increases with the increase in the initial concentration of pollutants and then becomes constant at higher concentration values. The adsorption capacity increased with initial pollutant concentration due to availability of large number of binding sites of the surface of CS@CTAB. At high pollutant concentrations, the adsorption capacity reached maximum value suggesting that the binding sites on the CS@CTAB surface reached saturation.

Figure 11
figure 11

Effect of initial concentration of E110, E122 and Cr(VI) on adsorption.

Adsorption isotherm

The Langmuir and Freundlich isotherm are presented in Fig. 12 and 13 and the calculated coefficients are shown in Table 3. The Langmuir isotherm model (R2 = 0.999) seemed to describe better the adsorption process of Cr(VI), E110, and E122 by the CS@CTAB than the Freundlich isotherm model (R2(Cr(VI) = 0.543, R2(E110) = 0.962, and R2(E122) = 0.5435). As can be noticed, the Langmuir model accurately fits the adsorption of E110, E122, and Cr(VI) on CS@CTAB. This shows that the Cr(VI), E110, and E122 molecules bind to the active sites on the biosorbent surface as a monolayer31. The RL values obtained for all initial concentrations of Cr(VI), E122, and E110 lie between 0 and 1 (Table 3), indicating that biosorption of Cr(VI) ions and the two dyes by CS@CTAB is a favorable process.

Figure 12
figure 12

Langmuir isotherm of (a) Langmuir isotherm model E122 adsorption, (b) E Langmuir isotherm model 110 adsorption, and (c) Langmuir isotherm model Cr(VI) adsorption.

Figure 13
figure 13

(a) Freundlich isotherm of E122 adsorption, (b) Freundlich isotherm of E110 adsorption, and (c) Freundlich isotherm of Cr(VI) adsorption.

Table 3 Langmuir and Freundlich isotherm constants and correlation coefficients of CS@CTAB film for the three pollutants:

Effect of oscillation time and adsorption kinetics

For the investigation of reaction time influence on the adsorption of pollutants, the time was changed in the range of (30-300 min) using 0.005 g CS@CTAB and appropriate amount for each pollutant and keeping other parameters constant (using 25 ml of 100 ppm pollutant at room temperature). Figure 14 showed that the adsorption was rapid about 80% in the first 30 min, then, by increasing time from 30 to 240 min the adsorption capacity increased to about 95% after which the adsorption capacity remained constant indicating that it reached equilibrium73.

Figure 14
figure 14

Effect of time on E110, E122, and Cr(VI) adsorption on CS@CTAB adsorbent.

Adsorption kinetic models can determine the adsorption mechanism and even the physicochemical properties of the adsorbent74. Therefore, two models, pseudo-second-order and pseudo-first-order, were employed to investigate the adsorption of E110, E122 and Cr(VI). The kinetic models were explained in their nonlinear form, as illustrated in Figs. 15 and 16. The attained parameters of each model are given in Table 4. The pseudo-second-order and pseudo-first-order models frequently reveal the surface-controlled adsorption process. In the present study, the pseudo-second-order model fits better than the pseudo-first-order model where the correlation coefficient (R2) is very close to unity (Table 4). Therefore, the adsorption of E110, E122 and Cr(VI) on the surface of CS@CTAB is controlled by a chemisorption mechanism.

Figure 15
figure 15

(a) Pseudo-1st-order for E122 adsorption, (b) Pseudo-1st-order for E110 adsorption, and (c) Pseudo-1st-order for Cr(VI) adsorption.

Figure 16
figure 16

(a) Pseudo-2nd-order for E122 adsorption, (b) Pseudo-2nd-order for E110 adsorption, and (c) Pseudo-2nd-order for Cr(VI) adsorption.

Table 4 Kinetic parameters for (E122, E110 and Cr(VI)) adsorption on to CS@CTAB.

Effect of temperature and thermodynamic studies

To examine temperature influence on the adsorption capacity of CS@CTAB, isotherms were attained in the range of (298-318 K). Equilibrium isotherms for investigated temperatures were demonstrated in Fig. 17. From Fig. 17, it was noted that the adsorption capacity on CS@CTAB decreased by increasing temperature31.

Figure 17
figure 17

Effect of temperature on E110, E122, and Cr(VI) adsorption on to CS@CTAB adsorbent.

To explore the adsorption process of Cr(VI), E110, and E122 dyes onto the CS@CTAB surface in terms of spontaneity and feasibility and to determine the degree of randomness at the solid/liquid interface, adsorption thermodynamic parameters were determined.

The adsorption of Cr(VI), E110, and E122 was studied at different temperatures from 298 to 318 K at pH 2 for Cr(VI) and pH3 for the E110 and E122 for 4 h. Free energy parameter (ΔGoads), adsorption entropy parameter (ΔSads), and heat of enthalpy parameter (ΔHads) of Cr(VI) metal ion, and E110 and E122 dyes adsorption by CS@CTAB adsorbent were calculated. ΔGoads parameter was calculated from the following Eqs. (9) and (10).

From the experimental data that present in Table 5, it was noticed that the negative ΔGoadsn value which confirms that the adsorption of Cr(VI), E110 and E122 by CS@CTAB adsorbent is a spontaneous process. It was also observed that the negative ΔHoads value confirms that the adsorption of Cr(VI), E110, and E122 by CS@CTAB material is exothermic. From ΔHo values that are higher than 80kJ/mole, it was proven that the adsorption was chemisorption. The negative ΔSoads values showed that Cr(VI) metal ion, E110, and E122 adsorption onto CS@CTAB surface leads to lower disorder and higher arrangement37. The plot of lnKC versus(1/T) absolute temperature for the adsorption of E122, E110 and Cr(VI) onto CS@CTAB is shown in Fig. 18.

Table 5 Thermodynamic parameters for the E122, E110 and Cr(VI) adsorption on to CS@CTAB:
Figure 18
figure 18

Plot of ln KC versus (1/T) absolute temperature for the adsorption of (a) E122, (b) E110, and (c) Cr(VI) on to CS@CTAB.

Effect of ionic strength

For the investigation of the ionic strength effect several species have been used. This procedure is crucial due to the presence of adverse ions in industrial wastewater with high concentrations. So, to study the effect of ionic strength the following species are used: CH3COONa, EDTA, and Ca(NO3)2 at optimum adsorption parameters. The influence of different anions on the adsorption of E110, E122, and Cr(VI) was presented in Fig. 19. The effect of different anions having a concentration of 0.1 M is insignificant on the adsorption of pollutants under investigation.

Figure 19
figure 19

Effect of ionic strength on E110, E122, and Cr(VI) adsorption on CS@CTAB adsorbent.

Regeneration experiments

To test the reusability of CS@CTAB, the desorption procedure was performed under optimum parameters. Subsequently, we examined the result of applying adverse eluents like HCl, NaOH, ethanol, and Na2CO3 (with and without heating) as presented in Fig. 20a and it was observed that the effect of Na2CO3 with heating at 45 °C achieved the best results for the desorption of E122, while Na2CO3 alone was the best eluent for E110 and eventually EDTA presented the best desorption for Cr(VI). Hence HCl, ethanol, and NaOH are poorly affecting the desorption of the three investigated pollutants. Figure 20b shows the influence of Na2CO3 at room temperature, Na2CO3 at 45 °C, and EDTA eluents on the desorption of E110, E122, and Cr(VI), respectively through five repeated cycles of adsorption–desorption75.

Figure 20
figure 20

(a) Desorption of E110, E122, and Cr(VI) from CS@CTAB adsorbent by different eluents. (b) Repeated 5 cycles of E110, E122, and Cr(VI) adsorption–desorption using Na2CO3 with heating as an eluent.

Removal of different pollutants from binary systems

To examine the effect of CS@CTAB on the removal efficiency of pollutants in binary systems, the λmax for each pollutant and that for each binary system were measured as follows: E110 (486 nm), E122 (518 nm), and Cr(VI) (427 nm), while λmax of binary systems are: E110 + E122 (508 nm), E110 + Cr(VI) (478 nm), E122 + Cr(VI) (525 nm), and E110 + E122-Cr(VI) (505 nm). New overlapped peaks appeared after the formation of binary systems then adsorption studies took place at each new λmax appeared. Adsorption took place by applying 0.005 g of CS@CTAB in 25 ml of binary system solutions with 50 ppm of each pollutant to form the binary system at pH 3, then undergoes shaking at 120 rpm. Maximum adsorption of binary systems took place after 4 h as shown in UV–visible data in Figs. 21 and 22. The adsorption efficiency of E110, E122, and Cr(VI) was estimated from Eq. (2).

Figure 21
figure 21

UV data of (a) E110 + E122 mix is compared with E110 and E122, (b) Cr(VI) + E122 mix is compared with Cr(VI) and E122, (c) Cr(VI) + E110 mix is compared with Cr(VI) and E110, and (d) E110-E122 + Cr(VI) mix is compared with E110, E122, and Cr(VI).

Figure 22
figure 22

UV data of after adsorption by CS@CTAB at different periods of time: (a) E110 + E122 mix, (b) Cr(VI) + E122 mix, (c) Cr(VI) + E110 mix, and (d) E110-E122 + Cr(VI) mix.

Application

In natural water samples

To assess the effectiveness of CS@CTAB for the adsorption of different pollutants, ideal experimental circumstances were fitted to natural samples. Standard solutions were used to create calibration curves. Under the above-optimized experimental circumstances, standard solutions (1.0 L) were handled. Several water samples, including tap water from our lab, and seawater from Ras Elbar City, Egypt, were used as analytical samples. Table 6 displays the analysis outcomes. The recoveries of spiked samples with a known amount of each pollutant were investigated. The recovered amounts ranged from 96.00 to 99.69%. These findings suggest that the CS@CTAB can be used to accurately to identify E110, E122, and Cr(VI) in natural water samples.

Table 6 Analytical results of adsorption of E110, Cr(VI) and E122 in natural water samples employing CS@CTAB as an adsorbent. (n = 5).
In colored soft drinks and food industrial

To assess the CS@CTAB performance for anionic dye adsorption, different samples containing E110 and E122 were subjected to the optimum experimental factors for E110 and E122 adsorption. The standard solutions were used to create the calibration curves. Degassed carbonated beverages and jelly made up the food samples. Figure 23 shows that more than 98% of the E110 and E122 extraction from the tested samples was accomplished. These findings suggest that the removal of E122 and E110 from various samples could be accomplished using the CS@CTAB adsorbent76,77.

Figure 23
figure 23

Recovery (%) of 100 ppm E122 from (A) strawberry tasted jelly, (B) pomegranate carbonized drink1 and 100 ppm E110 from (C), and (D) two different orange carbonized drinks.

Reasonable mechanism of Cr(VI), E110, and E122 adsorption onto CS@CTAB

To investigate the possible mechanism of metal ion adsorption onto CS@CTAB, the morphology, surface charge, optical images and FTIR of the adsorbent were evaluated.

Optical images of the chitosan, CS@CTAB, CS@CTAB-E122, CS@CTAB-Cr(VI), and CS@CTAB-E110 are represented in Fig. 24A(a–e). A great change appeared in the color of the chitosan, CS@CTAB, CS@CTAB-E122, CS@CTAB-Cr(VI), and CS@CTAB-E110. The beige color of chitosan (Fig. 24A.a) changed to brown in CTAB-modified chitosan (CS@CTAB) after the reaction of chitosan with CTAB in the presence of glutaraldehyde (Fig. 24A.b). After adsorption of each pollutant, the color of the CS@CTAB was changed from brown to pink in the adsorption of E122 (Fig. 24A.c), to yellow in the adsorption of Cr(VI) (Fig. 24A.d), and to orange in the adsorption of E110 (Fig. 24A.e). Those outcomes show the adsorption ability of CS@CTAB towards the pollutants.

Figure 24
figure 24

(A) Digital photographs of (a) Chitosan (CS) (b) CS@CTAB (c) CS@CTAB-E122 (d) CS@CTAB-Cr(VI) (e) CS@CTAB-E110. (B) IR spectra of (a) CS@CTAB, (b) CS@CTAB-E122, and (c) CS@CTAB -E110, (d) CS@CTAB-Cr(VI).

The FT-IR spectra of CS@CTAB after loading of E122, E110, and Cr(VI) are shown in Fig. 24B A change in the stretching vibration of the hydroxyl group can be observed in the IR spectra of CS@CTAB-Cr(VI), CS@CTAB-E122, and CS@CTAB-E110 as the peak of the OH group of CS@CTAB undergoes a slight shift as the peaks at 3683 cm−1 and 3462 cm−1 are shifted to 3750 cm−1 and 3518 cm−1 at CS@CTAB-Cr(VI), CS@CTAB-E122, and CS@CTAB-E110, and the inhomogeneous broadening of the peak after adsorption indicates the formation of medium H-bonding78. Additionally, the fork shape of the (N–H) bending peak at 1650 cm−1 disappeared in the IR spectra of CS@CTAB-Cr(VI), CS@CTAB-E122, and CS@CTAB-E110, indicating its reaction. In the IR spectra of CS@CTAB-E122 and CS@CTAB-E110, new peaks appeared at 1315 cm−1 and 1075 cm−1, attributed to (S–O) bending vibration and strong (S=O) stretching of the (SO3) group. On top of a shift in (C–O) bending vibration from 1155 to 1162 cm−1 in the IR spectra of both CS@CTAB-E122 and CS@CTAB-E11079,80,81,82.

The adsorption mechanism of the investigated anionic species was predicted by taking into consideration the functional groups on the surface of CS@CTAB, as shown in Fig. 25a,b. These functional groups include amino (-NH2) and hydroxyl (–OH) groups. As illustrated in Fig. 25a, For Cr(VI), in an acidic medium, the CS@CTAB adsorbs Cr(VI) through the electrostatic interactions between the negatively charged oxygen on the Cr(VI) and the positively charged groups (–NH3+, –OH2+) of the CS@CTAB adsorbent. Furthermore, hydrogen bonding has a vital role in the adsorption process for the three anionic species via the interaction between hydrogen on the surface of the adsorbent and atoms including oxygen and nitrogen in the structure of the anionic species, respectively83. Eventually, Fig. 25b illustrates the n-π's interactions are also attributed to the adsorption of the anionic dyes (E122 and E110) by the interaction of the electron-donating groups, which can be presented by the nitrogen and oxygen groups of the adsorbent and the aromatic rings of both dyes84.

Figure 25
figure 25

Resonable mechanism of adsorption of (a) Cr(VI) ions and (b) anionic dyes (E122 and E110) onto CS@CTAB.

Performance of CS@CTAB

Table 7 demonstrates the performance of CS@CTAB in comparison with other adsorbents. As noted from comparison studies, several variables should be taken into consideration, for example, adsorption dose, adsorption capacity, equilibration time, the sorbent type, and the initially applied concentration. From the studies, CS@CTAB proved to have a higher capacity towards Cr(VI), E122, and E110, as represented in Table 7.

Table 7 Comparison of adsorption capacity of E122, E110 and K2Cr2O7 onto CS@CTAB with previously reported studies.

Conclusion

CS@CTAB was fabricated via facile methodology followed by adsorption of these anionic species (E122, E110, and Cr(VI)). The CS@CTAB adsorbent contains a functional quaternary ammonium group, providing a large number of active adsorption sites. Hence, this adsorbent shows convenient recycling properties and notable practicality. We noted an efficient role for CS@CTAB in the adsorption of sunset yellow FCF, Azorubine, and hexavalent chromium (individually and in combination) at the optimum conditions of 0.005 g dose, 100 ppm initial concentration, and 240 min for all pollutants, while a pH of 3 was used for both dyes and 2 for Cr(VI). The adsorption kinetics of anionic pollutants on the surface of CS@CTAB was well-fitted to the pseudo-second-order model, and the isotherms were in agreement with the Langmuir isotherm with a maximum adsorption capacity of 492.6 mg/g, 492.6 mg/g, and 490.196 mg/g for Azorubine, Sunset Yellow, and hexavalent chromium, respectively. Thermodynamic studies suggest that the adsorption procedure is considered exothermic and spontaneous. From the previous findings, the adsorption of the CS@CTAB for anionic species was mono-layer chemisorption. Eventually, the eco-friendly and biodegradable CS@CTAB will be an attractive candidate for removing anionic species from aquatic systems and industrial samples.