Introduction

Wastewater effluents from different industries, such as textile, leather, paper, rubber, plastic, cosmetic, pharmaceutical and food, contain several kinds of synthetic dyestuffs [1,2,3]. The effluents are discarded into rivers and lakes, changing their biological life [4, 5]. Organic dyes are highly undesirable due to the highly intense colors and toxicities to human and other aquatic organisms even in low concentrations [6]. Crystal violet (CV) is a triarylmethane cationic dye widely used for purple coloration in textile industries for dying cotton and temporary hair colorant [7]. Besides, crystal violet is bacteriostatic agent for animal and veterinary medicine and used as dermatological agent for a biological strain in medical purpose [8].

It can cause harmful effects to the human body such as eye and skin irritation, heartbeat increase, cyanosis, and respiratory and kidney failure at extreme degree [9, 10]. Due to the obvious color fastness, resistance to microbial degradation and photolysis stability of most dyes, their effective removal in water has become a major challenge for traditional water treatment methods [11]. As a result, the development of innovative technologies for the effective removal of dyes from water has received considerable research attention [12].

Up to now, various chemical, physical and biological methods [13] were used for wastewater treatment including filtration, advanced oxidation, flocculation and coagulation, catalysis, photo and chemical degradation [14,15,16] and adsorption [17]. Among these methods, adsorption is the most appropriate and reasonable choice for the removal of organic pollutants and inorganic heavy metal ions from wastewater due to low cost and easy operation [18]. However, the adsorption technique has the disadvantage of being inconvenient in separating the absorbents from the aqueous solution.

In recent years, hydrogel polymers with three-dimensional networks and many functional groups such as amino, hydroxyl, carboxylic and sulfonic acid have been widely used in the dye removal from aqueous solutions because of their advantages such as high flexibility in the design of structures and properties, chemical stability in harsh environments, feasible regeneration and thermal durability [19,20,21,22,23,24,25,26]. For example, Pandey et al. [27] prepared hydrogels nanocomposite (HNC) by an aqueous free radical in situ crosslink copolymerization of acrylamide (AAm) and acrylic acid (AA) in aqueous solution of Karaya gum-stabilized Ag NPs. The removal efficiency of HNC was found to be 99% at pH 8 for a crystal violet (CV) after 1 h. The high CV removal efficiency is explained by H-bonding interactions, as well as dipole–dipole and electrostatic interactions between anionic adsorbent and cationic dye molecules. They synthesized LBG-cl-Poly (DMAAm) hydrogel via free radical in situ polymerization of N,N-dimethyl acrylamide and locust bean gum (LBG) by employing N,N′-methylene bis (acrylamide) as cross-linkers. Adsorption behavior of hydrogel was investigated for the adsorption of cationic dye-Brilliant green (BG) and it was found to have a maximum adsorption capacity of 142.85 mg. g − 1and BG removal of 97.7% in 50 mg.L− 1 of dye solution [28].

However, the adsorption technique has the disadvantage of being inconvenient in separating the absorbent from the aqueous solution. The use of magnetic nanoparticles is one of the improved methods [29,30,31]. Magnetic nanoparticles have attracted tremendous attention owing to their high specific surface area, low toxicity, biocompatibility and easy separation from wastewater by an external magnetic field [32]. Magnetic adsorbents are typically evenly distributed in polymer matrixes, and various magnetic adsorbents, such as magnetic chitosan particles [33], magnetic carbon nanotubes [34], magnetic graphene [35] and magnetic hydrogels [36, 37], have been developed for dye wastewater treatment.

Polyethylenimine (PEI) is a typical water-soluble polyamine and contains a great number of amine groups. The presence of nitrogen-containing groups on its molecular chains makes it easily be positively charged in a broad pH range, thus facilitating the adsorption of anionic dyes via strong electrostatic attraction [38,39,40]. Thus, combining functionalities of magnetism and hydrogel structures may show facile separation properties and highly efficient dye adsorption. Up to now, few literatures have been reported about the preparation and its cationic dye absorption behaviors of PEI-modified magnetic hydrogel nanocomposites based on poly (acrylamide-co-acrylic acid) and PEI-modified magnetic nanoparticles. We assumed the design of PEI-modified magnetic hydrogel nanocomposites (PEI-mHNCs) with three-dimensional networks would achieve the purpose of developing a novel adsorbent with high dye adsorption capability and facile separation property.

In this work, we synthesized PEI-mHNCs with three-dimensional networks based on poly (acrylamide-co-acrylic acid) and PEI-modified magnetic nanoparticles. Effect of parameters (i.e., pH value, adsorption time, initial dye concentration) on the adsorption capacity of crystal violet were investigated. The kinetic and isotherm of crystal violet adsorption process for PEI-mHNCs were analyzed. Desorption and reusability, as well as structure and morphologies of PEI-mHNCs, were also evaluated.

Materials and methods

Materials

Acrylic acid (AA), acrylamide (AM), ammonium persulfate (APS) and sodium bisulfite (SBS) were purchased from Chengdu Kelong Reagent Chemicals (China). FeCl3.6H2O, FeCl2.7H2O and γ-chloropropyl trimethoxy silane (CTS) were purchased from Chengdu Huaxia Reagent Chemicals (China). Polyethylenimine (PEI) and polyethylene glycol diacrylate (PEGD) were purchased from Chengdu Aike Chemical Reagent (China). All chemicals used were of analytical reagent grade without further purification.

Preparation of magnetic nanoparticles (MNPs)

Magnetic nanoparticles (MNPs) were synthesized according to the known procedure by co-precipitation method [42,43,44]. Typically, 19.6 g FeCl3.6H2O) and 7.2 g FeCl2.7H2O were dissolved in deionized water (300 mL) and stirred at 60 °C. Then, 2 mol/L of ammonia solution was added dropwise under vigorous stir until the pH reached 11 and the reaction mixture was stirred for 4.5 h. After cooling down to room temperature, the magnetic nanoparticles were separated by an external magnet and washed several times with deionized water. Finally, the magnetic nanoparticles were dried at 60 °C for 24 h under vacuum.

Preparation of CTS-modified magnetic nanoparticles (CTS-MNPs)

Typically, 1 g magnetic nanoparticles were dissolved in deionized water and ethanol (100 mL) with water/ethanol volume ratio of 1:1 and stirred at 50 °C under N2 protection. Then, 1.5 mL 30% ammonia solution was added dropwise under vigorous stir, followed by slow addition of 3 mL silane coupling agent (CTS) under vigorous stirring. After 4 h reaction under N2 protection, the temperature was cooled down to room temperature and CTS-modified magnetic nanoparticles were separated by an external magnet and washed several times with deionized water and ethanol alternately. Finally, CTS-modified magnetic nanoparticles (CTS-MNPs) were dried at 60 °C for 24 h under vacuum.

Preparation of PEI-modified magnetic nanoparticles (PEI-MNPs)

Typically, 1 g CTS-MNPs and1g PEI were dissolved in 100 mL deionized water and stirred at 50 °C for 5 h under N2 protection. After cooling down to room temperature, PEI-modified magnetic nanoparticles (PEI-MNPs) were separated by an external magnet, washed several times with deionized water and ethanol alternately, and dried at 60 °C for 24 h under vacuum.

Preparation of PEI-modified magnetic hydrogel nanocomposites (PEI-mHNCs)

To prepare the PEI-modified magnetic hydrogel nanocomposites (PEI-mHNCs), 10 g acrylic acid, 10 g acrylamide and 3.61 g NaOH were dissolved in 100 mL deionized water and stirred for 45 min at room temperature. Then, 3.0 g PEI-MNPs and 0.15 g polyethylene glycol diacrylate were added into the above monomer solution and stirred for 30 min at room temperature. After that, the temperature was raised to 60 ℃, followed by the slow addition of 0.24 g ammonium persulfate and 0.077 g sodium bisulfite. The reaction mixture was stirred for 5 h at 60 ℃. After cooling down to room temperature, PEI-mHNCs were separated by an external magnet, washed several times with deionized water and ethanol alternately and left over night in ethanol. Finally, PEI-mHNCs were dried at 60 °C for 24 h under vacuum.

Dye adsorption experiment using batch methods

Batch adsorption experiments were carried out on a thermostatic shaker with a constant speed of 120 rpm at room temperature to study adsorption property of crystal violet for PEI-mHNCs. 0.1 g dry and milled PEI-mHNCs was immersed in 100 mL crystal violet solution with desired initial concentration and pH for a given time at different temperatures, and then crystal violet concentration left in the solution was analyzed by UV–visible spectrophotometer.

Dye absorption capacity was calculated using the following equation:

$$ q_{e} = \left( {C_{0} - C_{e} } \right)V/m $$
(1)

where qe is the amount of dye adsorbed (mg/g), C0 and Ce are initial and equilibrium concentration of dye (mg/L) in the testing solution, respectively. V is the volume of the dye solution (L) and m is the mass of dry PEI-mHNCs (g).

Desorption and regeneration experiments

Dye desorption was carried out in 0.5 M HCl solution (50 mL) for 90 min. After a given time, the supernatant was subjected to determine the dye concentration by UV–visible spectrophotometer and desorption percentage is calculated according to Eq.  (2).

$$ {\text{Desorption}} = {{M}}_{{{d}}} /{{M}}_{0} \times { 1}00\% $$
(2)

where M0 is the amount of dye adsorbed by PEI-mHNCs and Md is the amount of dye desorbed.

After dye desorption, PEI-mHNCs were removed from desorption solution using an external magnet, and washed with distilled water, dried at 60 °C for 24 h, and used for the subsequent runs. To test the reusability of PEI-mHNCs, this adsorption–desorption cycle was repeated five times using the same adsorbents.

Characterization of the magnetic hydrogel nanocomposites

Morphologies of MNPs, CTS-MNPs and PEI-MNPs were observed by JEM-100CX transmission electron microscopy (TEM). The samples were dropped onto a copper net sprayed with carbon, dried in vacuum, and then tested on a transmission electron microscope with an acceleration voltage of 100 kV. Micrographs of PEI-mHNCs were observed by HITACHI S-530 scanning electron microscope (SEM). Before SEM observation, all samples were fixed on aluminum stubs and coated with gold. X-ray diffraction analysis was carried out on DMX-IIIC diffractometer. Magnetic properties were determined by a LakeShore 7407 vibrating sample magnetometer (VSM) at room temperature.

Results and discussion

TEM and SEM characterization of the magnetic materials

Figure 1a–c shows the TEM images of MNPs, CTS-MNPs and PEI-MNPs, respectively. It is obviously that MNPs, CTS-MNPs and PEI-MNPs have average size of 15–20 nm with irregular particle shape and partial agglomeration phenomenon. This may be related to the high vacuum drying process of TEM, during which magnetic nanoparticles are easy to agglomerate. After surface modification with CTS and PEI, the agglomeration of magnetic nanoparticles is reduced due to the steric effect of organic molecular chains grafted on the surface of magnetic nanoparticles [45]. Besides, the above TEM results signify that unmodified and modified magnetic Fe3O4 particles with nanometer size are successfully prepared. As can be seen from Fig. 1d, the surface of PEI-mHNCs is rough and uneven with many coarse porous and gap structure. Such a structure can help crystal violet rapidly infiltrate and diffuse into the three-dimensional network of magnetic polymer adsorbent, which can enhance the crystal violet adsorption for PEI-mHNCs.

Fig. 1
figure 1

TEM images of MNPs (a), CTS-MNPs (b) and PEI-MNPs (c). SEM image of PEI-mHNCs (d)

XRD analysis of the magnetic materials

Figure 2 demonstrates the XRD curves of MNPs, CTS-MNPs, PEI-MNPs and PEI-mHNCs, respectively. As can be seen from XRD spectra, the sharp characteristic diffraction peaks of MNPs, CTS-MNPs and PEI-MNPs appear at 2θ  = 0.23°, 35.50°, 43.36°, 53.67°, 57.12° and 62.72°, which correspond to the (220), (311), (400), (422), (511) and (440) crystal faces of Fe3O4 cubic phase, respectively. These results are consistent with the characteristic diffraction peaks of standard Fe3O4 (JCPDS No. 19–06290) [46]. Meanwhile, the diffraction spectra of MNPs, CTS-MNPs and PEI-MNPs have no impurity peaks, indicating that the obtained MNPs, CTS-MNPs and PEI-MNPs have high purity and good crystallinity. Crystalline structure of Fe3O4 is not affected after surface modification. It is worth noting that PEI-mHNCs has characteristic diffraction peaks of standard magnetic Fe3O4 appearing at 2θ = 30.23°, 35.50°, 57.12° and 62.72°, indicating that the crystal structure of magnetic Fe3O4 is not destroyed during the radical copolymerization of acrylamide and acrylic acid.

Fig. 2
figure 2

XRD spectra of MNPs, CTS-MNPs, PEI—MNPs and PEI-mHNCs

Magnetic property of the magnetic materials

VSM was employed to study the magnetic behaviors of MNPs, CTS-MNPs, PEI-MNPs and PEI-mHNCs at room temperature, as shown in Fig. 3. The hysteresis loops of all samples showed negligible coercivity and remanence at room temperature, indicating the superparamagnetic nature of MNPs, CTS-MNPs, PEI-MNPs and PEI-mHNCs [47]. Saturation magnetization of magnetic nanoparticles prepared by the co-precipitation method reached 67.76 emu/g. At the same time, the saturation magnetization of magnetic nanoparticles modified with CTS and PEI decreased slightly with the saturation magnetization of 58.12 emu/g and 51.03 emu/g, respectively. Although the saturation magnetization decreased to 16.47 emu/g for PEI-mHNCs due to none-magnetic response of silane coupling agent and the polymer matrix, PEI-mHNCs still have a certain magnetic response. Therefore, PEI-mHNCs can facilitate solid–liquid separation with the advantages of high separation efficiency, time and labor saving and no secondary pollution under an external magnetic field.

Effect of pH on dye adsorption properties of PEI-mHNCs

pH value is an important parameter that can competently impact the dye adsorption potential onto adsorbents [48, 49]. The adsorption condition was as follows: adsorbent dosage of 1 g/L, temperature of 25 ℃, initial concentration of 700 mg/L for crystal violet and contact time at 90 min. As shown in Fig. 4a, the adsorption capacity of crystal violet for PEI-mHNCs increased with the increase of pH value. However, the adsorption capacity of crystal violet of PEI-mHNCs decreased slowly when the pH exceeded 8. When the pH is low, H+ within the polymeric network can compete with the cationic groups of crystal violet, which make it difficult for crystal violet to be absorbed by electrostatic attraction with the functional groups of PEI-mHNCs. In addition, PEI has many amino and imine groups. These groups are easy to proton into ammonium cations which have the electrostatic repulsion force with cationic groups of crystal violet in the condition of low pH value. Hence, adsorption capacity of crystal violet for PEI-mHNCs decreases. With the increase of pH value, the carboxyl group of PEI-mHNCs can ionize to produce carboxyl anion, which increases the electrostatic repulsive force of magnetic polymeric chains and is in favor of the extension and expansion of polymer network. Besides, the amino protonation of PEI chains decreases with increasing pH value. Therefore, PEI-mHNCs have more amino and imine groups which can absorb crystal violet vis hydrogen bond and increases the adsorption capacity of crystal violet. However, when pH is higher than 8, the concentration of Na+ in the polymer network is high, increasing the shielding effect of Na+ on the carboxylic groups of polymer molecular chain, reducing the electrostatic repulsive force of macromolecular chains, and making three-dimensional network difficult for expansion. As a result, dye adsorption capacity of PEI-mHNCs is reduced.

Fig. 3
figure 3

Magnetization curves of MNPs, CTS-MNPs, PEI-MNPs and PEI-mHNCs

Effect of initial dye concentration on dye adsorption properties of PEI-mHNCs

The influence of initial dye concentration on the adsorption capacity of crystal violet for PEI-mHNCs is shown in Fig. 4b. The adsorption condition was as follows: adsorbent dosage of 1 g/L, temperature of 25 ℃, pH value of 8, and contact time at 90 min. Obviously with the increase of initial dye concentration, the adsorption capacity of crystal violet for PEI-mHNCs increases rapidly at first and then increases slowly. PEI-mHNCs has crystal violet adsorption capacity of 198.5 mg/g, 286.3 mg/g and 372.6 mg/g for initial dye concentration of 300 mg/L, 500 mg/L and 700 mg/L, respectively.

In general, the increase of adsorption capacity caused by the increase of initial concentration is mainly attributed to the driving force generated by the concentration difference between the solid–liquid interface [50]. When dye concentration is low, PEI-mHNCs has a large number of active and exposed adsorption centers which are not occupied by dye molecule, resulting in a rapid increasing adsorption capacity. With the increase of initial dye concentration, concentration gradient for dye in solution and PEI-mHNCs increases continuously, upgrading the mass transfer driving force, making more dye diffuse and permeate into the polymeric networks. On the other hand, with the increasing dye concentration, many adsorption centers for PEI-mHNCs are occupied by dye molecules, resulting in limited and decreased adsorption vacancies for PEI-mHNCs. As a consequence, dye adsorption capacity for PEI-mHNCs increases slowly [51].

Effect of adsorption time on dye adsorption properties of PEI-mHNCs

Adsorption time is an important variable to design an economical adsorbent for the wastewater effluents. The adsorption condition was as follows: adsorbent dosage of 1 g/L, temperature of 25 ℃, pH value of 8 and initial concentration of 500 mg/L for crystal violet. As can be seen from Fig. 4c, dye adsorption rate for PEI-mHNCs is relatively fast at the initial stage of adsorption. With the extension of adsorption time, dye adsorption rate slows down, and gradually approaches the absorption equilibrium at 90min, indicating that PEI-mHNCs has a high adsorption rate for cationic crystal violet.

At the initial stage of adsorption, there are many adsorption vacancies on the surface of PEI-mHNCs, so there is a large concentration gradient of dye in the aqueous solution and on the surface of PEI-mHNCs, leading to a rapid dye adsorption rate in the initial stage of adsorption. With the extension of adsorption time, cationic crystal violet gradually fills up the adsorption vacancies on the surface of PEI-mHNCs and begins to enter the polymeric networks. Dye adsorption rate slows down because of the resistance to enter the pores inside the polymeric networks and the slow mass transfer rate. When the adsorption vacancies on the surface and inside of the polymeric networks are both occupied by cationic crystal violet, dye adsorption tends to balance, and dye adsorption of PEI-mHNCs reaches adsorption equilibrium.

Dye adsorption kinetics for PEI-mHNCs

To investigate the dye adsorption kinetics for PEI-mHNCs, pseudo-first-order [52] and pseudo-second-order equations [53] were used to test the experimental data of adsorption of crystal violet for PEI-mHNCs.

The pseudo-first-order rate expression of Lagergren is given as:

$$ {\text{ln}}({{q}}_{{\text{e}}} - {{q}}_{{{t}}} ) \, = {\text{ lnq}}_{{\text{e}}} - {{k}}_{{1}} {{t}} $$
(3)

The pseudo-second-order kinetic model is expressed as:

$$ {{t}}/{{q}}_{{{t}}} = {1}/\left( {{{ k}}_{{2}} {{q}}_{{\text{e}}}^{{2}} } \right) + {{t}}/{{q}}_{{\text{e}}} $$
(4)

where qe is the amount of adsorbed dye onto PEI-mHNCs at equilibrium (mg/g), qt is the amount of dye adsorbed at time t (mg/g), k1 and k2 are the first order rate constant and second order rate constant, respectively.

A straight line of ln (qeqt) versus t suggests the applicability of pseudo-first-order kinetic model to fit the experimental data, whereas a linear relationship between t/qt versus t indicates pseudo-second-order kinetic model. The slopes and intercepts of plots of ln (qeqt) versus t and the slopes and intercepts of plots of t/qt against t are used to determine the first-order rate constant k1 and equilibrium adsorption qe, as well as the second-order rate constant k2 and equilibrium adsorption qe, respectively.

Dye adsorption kinetics parameters for PEI-mHNCs are shown Table 1. The correlation coefficients (R2) for the pseudo-first-order kinetic model are low (R2 < 0.85) for crystal violet absorption with different dye initial concentrations. Also, the calculated qe values (32.7, 52.5 and 98.8 mg/g) obtained from the pseudo-first-order kinetic model do not give reasonable values, which are much lower than experimental values (196.5, 282.8 and 372.6 mg/g). This suggests that the adsorption of crystal violet of PEI-mHNCs is not a pseudo-first-order process. However, the correlation coefficients for the pseudo-second-order kinetic model are very close to 1 (R2 > 0.99), and the calculated qe values almost agree with the experimental data. These results indicate that the crystal violet adsorption of PEI-mHNCs belongs to the second-order kinetic model.

Table 1 Kinetic information calculated from crystal violet absorption by PEI-mHNCs

Isothermal dye adsorption for PEI-mHNCss

Langmuir and Freundlich adsorption isotherm models were used to determine the appropriate isotherm of crystal violet adsorption for PEI-mHNCs. The linearized form of Langmuir adsorption isotherm is expressed in Eq.  (5).

$$ {1}/{{q}}_{{\text{e}}} = { 1}/\left( {{{K}}_{{\text{L}}} {{q}}_{{\text{m}}} {{C}}_{{\text{e}}} } \right) + { 1}/{{q}}_{{\text{m}}} $$
(5)

In Eq.  (5), Ce is the equilibrium concentration of dye in solution (mg/L), qe is the equilibrium concentration of dye for the adsorbent (mg/g), qm is the monolayer adsorption capacity of the adsorbent (mg/g) and KL (L/mg) is the Langmuir equilibrium constant. The values of qm and KL are determined from the slope and intercept of the plots of 1/qe versus Ce.

The linearized Freundlich isotherm has the general form given in Eq.  (6).

$$ {\text{lnq}}_{{\text{e}}} = {\text{ lnK}}_{{\text{F}}} + \, \left( {{1}/{{n}}} \right){\text{ln}} C_{{\text{e}}} $$
(6)

In Eq.  (6), qe is the amount of dye adsorbed at equilibrium (mg/g), Ce is the equilibrium concentration of dye in solution (mg/L), KF and n are the Freundlich constants, indicating adsorption capacity and adsorption intensity, respectively. The values of n and KF are calculated from slope and intercept of plots of lnqe versus lnCe.

The values of the Langmuir and Freundlich constants Qm, KL, KF, n and the correlation coefficients (R2) are listed in Table 2. The correlation coefficients (R2 > 0.99) of Langmuir adsorption models for crystal violet by PEI-mHNCs are higher than those of Freundlich adsorption models ( (R2 < 0.93). Besides, the adsorption capacities of crystal violet calculated by Langmuir fitting equation are in good agreement with the experimental data. The results indicate that the adsorption process of crystal violet for PEI-mHNCs is consistent with Langmuir adsorption model with monolayer adsorption.

Table 2 Langmuir and Freundlich isotherm constants for adsorption isotherm curve fitting parameters of crystal violet adsorption by PEI-mHNCs with dye initial concentration of 900 mg/L

Thermodynamic of dye adsorption by PEI-mHNCs

To further investigate the dye adsorption process, the experimental data under different temperatures varying from 298 to 338 K were analyzed by Eqs. (7) , (8) and (9) to obtain the thermodynamic parameters including the Gibbs free energy (ΔGΘ), enthalpy (ΔHΘ) and entropy (ΔSΘ).

$$ \Delta {{G}}^{\Theta } = - {\text{RTln}}K_{{\text{d}}} = - {\text{RTln}}\left( {{{q}}_{{\text{e}}} /{{C}}_{{\text{e}}} } \right) $$
(7)
$$ \Delta {{G}}^{\Theta } = \Delta {{H}}^{\Theta } - {{T}}\Delta {{S}}^{\Theta } $$
(8)
$$ {\text{ln}}\left( {{{q}}_{{\text{e}}} /{{C}}_{{\text{e}}} } \right) = \, \Delta {{S}}^{\Theta } /{{R}} - \Delta {{H}}^{\Theta } /\left( {{\text{RT}}} \right) $$
(9)

where R (8.314 J.mol−1. K−1) is the gas constant, T is the temperature in K and Kd is the equilibrium constant which can be calculated from qe/Ce.

Adsorption thermodynamic parameters such as ΔGΘ, ΔHΘ and ΔSΘ can be obtained based on ln (qe/Ce) ~ 1/T curve and the results were shown in Table 3. Obviously with the increase of adsorption temperatures, dye adsorption capacity of PEI-mHNCs gradually decreases. The negative values of ΔGΘ at different temperatures indicate dye adsorption is thermodynamically spontaneous process. The absolute values of ΔGΘ gradually decrease as the temperature increases, implying that lower temperature facilitates the adsorption of dyes. The negative values of ΔHΘ and ΔSΘ confirm that the dye adsorption process for PEI-mHNCs is an exothermal and decreased entropy process.

Table 3 Thermodynamic parameters of crystal violet adsorption for PEI-mHNCs

Desorption-regeneration performance of PEI-mHNCs

It is well known that the recyclability and stability of the adsorbent is crucial for practical applications. After dye desorption by HCl solution, PEI-mHNCs were removed from desorption solution using an external magnet, and washed with distilled water, dried at 60 °C for 24 h, and used for the subsequent runs. Figure 5a shows the desorption curves of PEI-mHNCs using hydrochloric acid as desorbent. Dye desorption of PEI-mHNCs gradually decreased after five cycles of recycling, but the reduction was not significant. After five cycles of recycling, dye desorption of PEI-mHNCs was still higher than 93%, indicating that PEI-mHNCs had good dye desorption performance. As indicated in Fig. 5b, after five cycles, PEI-mHNCs had crystal violet absorption capacity of 268 mg/g which reached 89.9% of that (298 mg/g) for the first absorption, indicating good reversibility and recyclability of PEI-mHNCs. The decrease of dye adsorption capacity may be caused by a few active sites not being released or incomplete dye desorption.

Fig. 4
figure 4

Effects of pH (a); effects of initial concentration of crystal violet (b); effects of adsorption time c on crystal violet adsorption capacity for PEI-mHNCs

Fig. 5
figure 5

Desorption (a) and recycling performance (b) for PEI-mHNCs toward crystal violet

Comparison of adsorption capacity with other hydrogel adsorbents

In recent years, extensive research has been done all over the world to find an adsorbent with a low economic cost, easy processability, and high adsorption capacity. To evaluate the CV adsorption of PEI-mHNCs, CV adsorption capacity of PEI-mHNCs was compared with other hydrogel adsorbents (Table 4). The results showed that PEI-mHNCs had good CV adsorption capacity, which was higher than most of the other hydrogel adsorbents in the literature. Besides, PEI-mHNCs had good magnetic responsiveness, desorption and reusability which made it an efficient adsorbent for the removal of cationic dyes from an aqueous solution.

Table 4 Comparison of adsorption capacity of PEI-mHNCs for CV dye removal with other hydrogel absorbents

Given the chemical structure of the cationic crystal violet dye and PEI-mHNCs, a possible mechanism for the interactions between PEI-mHNCs and cationic crystal violet dye is illustrated in Scheme 1. PEI-mHNCs has many functional groups such as NH2, COOH, COONa and CONH2, which can interact with the cationic crystal violet dye via H- bonding and electrostatic force between the positively charged dye molecules and negatively charged PEI-mHNCs. Besides, PEI-mHNCs has rough and porous structure, which can promote crystal violet to infiltrate into the three-dimensional network of magnetic polymer adsorbent, and thus enhance the crystal violet adsorption for PEI-mHNCs.

Scheme 1
scheme 1

Possible interactions between PEI-mHNCs and cationic crystal violet dye

Conclusion

PEI-modified magnetic hydrogel nanocomposites (PEI-mHNCs) with three-dimensional networks were prepared by copolymerization of acrylamide and acrylic acid in the presence of PEI-modified magnetic nanoparticles. XRD results show that PEI-mHNCs have been successfully prepared without destroying high crystallinity of magnetic Fe3O4. PEI-mHNCs absorbed crystal violet rapidly and approached absorption equilibrium at 90 min. Dye adsorption capacity of PEI-mHNCs increased with the increase of initial dye concentration and the increase of pH to 8. The adsorption isotherms and kinetics were in agreement with the Langmuir equation and pseudo-second-order kinetic equation, respectively. Crystal violet adsorption for PEI-mHNCs is a spontaneous, exothermal and entropy reduction process. In addition, PEI-mHNCs had good magnetic separation, desorption and recycling, making it potential applications in removing cationic dye from the aqueous solution.