On the Behavior of Newly Synthesized Functionalized Imidazolium-Based Ionic Liquids for Highly Efficient Extraction and Separation of Pirimicarb from Orchard Real Wastewater

The presence of pirimicarb compounds as pollutants in orchard wastewater has sparked rising worries about their detrimental impacts on the ecosystem and human health, and their removal is critical for Pakistan’s aquatic environment. It not only contaminates fruit, but it also leaches into the soil and contaminates groundwater. However, there is little data on the effective removal of pirimicarb from orchard wastewater. The main purpose of this study is to create a novel family of functionalized imidazolium-based ionic liquids (ILs) using a simple chemical process, which will be utilized for the first time to extract pirimicarb from orchard wastewater in an efficient, cost-effective, and environmentally acceptable manner. FTIR, SEM, XRD, TGA, BET, and 1H NMR spectroscopy were used to characterize the functionalized samples. The impact of the IL substituent on the separation capacity was studied. In addition, the extraction and separation of pirimicarb from orchard wastewater were investigated under a variety of conditions (time, concentration, and temperature) in order to better understand the adsorption behaviors of distinct ILs in an aqueous solution. The adsorption equilibrium was reached in 30 minutes, and the maximum removal of pirimicarb was achieved utilizing the synthesized [C2im][C3H6NH2]Br-, according to the data. The pseudo-first-order model and the Langmuir model both suit well with the adsorption mechanism of pirimicarb with very good adsorptive capacities. Thermodynamic analyses indicated spontaneous, endothermic, and entropy-driven adsorption processes. The synthesized imidazolium-based ILs have good regeneration capability and recycling at least for six adsorption-desorption runs and have also been used to successfully detect pirimicarb orchard wastewater samples. The superior safety of the proposed method nominates it as a promising future strategy for pollution prevention. Consequently, this work has proven that the pirimicarb adsorption to various imidazolium-based ILs was dependent on the structures of the produced imidazolium-based ILs, which specifies its potential for practical applications in water pollutant removal and environmental remediation.


Introduction
The use of pesticides is critical for the management of pests and insect-borne diseases, which leads to an increased food supply. Although pesticides are beneficial to agriculture, their rising use has had a negative impact on humans and the environment as a whole. Because of its low persistence and great efficacy, the carbamate pesticide family has been widely used in the pest control of vegetable crops. The US Environmental Protection Agency (EPA) considers carbamate herbicide to be one of the most harmful contaminants in the environment [1,2]. Because it is highly soluble in aqueous mediums and circulates into surface and groundwater through soil leaks, this family is poisonous and poses a threat to all living species [3].
In particular, pirimicarb (2-dimethylamino-5,6dimethylpyrimidin-4-yldimethylcarbamate) is an important substituted N, N-dimethylcarbamate insecticide, and it has been widely employed against aphids in fruit and vegetable [1,4]. Pirimicarb has been classified as moderately hazardous (Class II) by the World Health Organization (WHO) because it has low toxicity, is potentially carcinogenic and mutagenic in mammals, and poses a threat to living organisms due to its inhibition of the enzyme acetylcholinesterase [3,5,6]. Pirimicarb is sprayed into the ground and surface water without being treated before being discharged into the streams. To protect human health, hydrolytic resources, and the aquatic environment, it is critical to investigate simple, inexpensive, and effective strategies for removing pirimicarb from water.
These strategies can be replaced by new alternate technologies for the removal of organic pollutants from wastewater such as biological treatment [7], electrochemical treatment [8], photocatalytic degradation [9], membrane separation process [10], and adsorption [11]. Among them, adsorption is a very efficient, greener, and cost-effective process for wastewater treatment [12]. Various adsorbents, zeolites, nanoparticles, carbon nanotubes, and metal-organic frameworks have been prepared and synthesized to detoxify/decontaminate wastewater by removing persistent organic pollutants (POPs) [13].
Ionic liquids (ILs) have been used as a solvent medium in different chemical reactions for environmental remediation, but very few scientists considered them for the adsorption process so far. The use of ILs as adsorbents possesses various advantages, i.e., ILs with any aromatic functional group are used for the removal of polyaromatic hydrocarbons (PAHs) from the environment while ILs that have amine as a functional group efficiently are used for toxic gases adsorptions, e.g., CO 2 , NO 2 , and SO 2 .
ILs have also recently received a lot of attention for their green chemistry and clean processes and as functional inorganic materials for a variety of applications in various fields [14]. It has structural and chemical characteristics that distinguish it from other functional materials, including low vapor pressure, nonvolatility, nonflammability, noncorrosive, variable viscosities, adjustable miscibility, reusability, higher conductivity, and very high chemical and thermal stability [15,16]. Because of their high stability, they could be long-term and high-efficiency materials in an environmental application.
At temperatures below 100°C, the strong coulumbic attraction between strong inorganic anions and asymmetric organic cations can be expressively changed to improve the physicochemical properties of ILs such as solvent selection, hydrophobicity, melting point, and viscosity [17,18]. The modified ILs can perform exceptionally well in terms of separation. For example, cellulose acetate imidazolium-based ILs were utilized to extract pirimicarb from real wastewater, with a 74% removal efficiency under ideal conditions [19]. Similarly, researchers used ionic liquids for the removal of contaminants from water. According to the results, ILs were proved as a good alternative material option used for contaminants analysis in water as compared to solid-phase extraction materials due to their universality in liquid media and in an atmospheric environment [20].
The present study is conducted using eco-friendly, lowcost reactants to synthesize greener electrolytes "ionic liquids" in order to perform its real-world application. To the best of our knowledge, there is no comparative study for the carbamate removal from orchard wastewater using different types of imidazolium-based ILs ( Table 1). The goal of this research is to develop a new series of functionalized imidazoliumbased ILs for the adsorption of pirimicarb from orchard wastewater. The morphology, crystallization, chemical structure, and textural characteristics of the various types of imidazolium-based ILs that were produced were studied. The effects of IL type, contact time, carbamate concentration, and temperature on removal efficiency were studied. Then, using adsorption kinetics, isotherms, and thermodynamic models, the adsorption performance was assessed. Possible carbamate adsorption mechanisms onto ILs and the regeneration and recycling studies of the adsorption process were discussed in detail. This research presents functionalized ILs as novel adsorbent materials, for adsorbing and removing carbamate from orchards in a complex environmental medium and projecting their use in large-scale wastewater treatment processes.

Materials and Methods
2.1. Materials. All chemicals and reagents used were of Sigma Aldrich Company and were of analytical grade.

Synthesis of Functionalized Imidazolium-Based Ionic
Liquids. The chemical structure and its molecular models of the synthesized ILs are shown in Table 1. As shown in Figure 1, the synthesized functional imidazolium-based ILs were prepared by the following procedures.

Synthesis of [im]
[C 3 H 6 NH 2 ]Br -. In a typical experiment, 5 mmol imidazole was added to 2-bromopropyl amine in 20 mL toluene and heated to 50°C under continuous reflux for 24 hours to form an oily colorless macrodroplet, which was then iced for 3 hours before being washed repeatedly with ethyl acetate to remove the unreacted materials. S-1 was assigned to the synthesized IL ([im][C 3 H 6 NH 2 ]Br -).

Synthesis of [im]
[C 3 H 6 NH 2 ]BF 4 ] -. IL based on the BF 4 anion was synthesized using sodium tetrafluoroborate and an ion exchange reaction mechanism. Using toluene (20 mL) as a solvent, a known amount of (S-1) was added to 5 mmol sodium tetrafluoroborate. For anionic exchange of bromide ion with tetrafluoroborate ion, the mixture was refluxed under heating for 24 hours. After 2-3 hours of condensation and washing, the crude liquid (ethyl acetate) was transformed into pale yellow droplets. S-2 was assigned to the product ([im][C 3 H 6 NH 2 ]BF 4 ] -).

Results and Discussion
The new imidazolium-based ILs were used to test the extraction of pirimicarb.   Figure 1 depicts the ILs studied and their synthesis. These ILs have high redox stability, are simple to synthesize, and have a low viscosity.

Characteristics of the Prepared Imidazolium-Based ILs.
FTIR was used to identify changes in the functional groups of the various ILs that had been prepared. In pure ILs, the skeleton stretching vibration of the imidazolium ring can be assigned by two peaks at 1580 and 1470 cm -1 , which provide clear evidence for the successfully prepared products (S-1 to S-4) [21]. The total incorporation of ILs with alkyl groups and the formation of new functional groups  The change in intensity of sample S-1 between 2800 and 3000 cm -1 indicated the presence of several alkyl groups [22]. The conjugated strong peaks at 1580 and 1633 cm -1 were caused by the imidazolium ring's symmetric C=N and symmetric -C=C-bonds, respectively, indicating the presence of imidazolium cations [15]. The peaks at 3650 cm -1 represent N-H stretching, whereas the stretching vibration of the -OH bond is due to the hydrobromide anion, which appears at 3300 cm -1 and helps form hydrogen bonds with pirimicarb [23]. The symmetric aromatic C-H group in imidazolium cations of ILs was revealed by the peak at 3150 cm -1 [24]. Furthermore, the imidazole cation's C-H stretching and bending were measured at 3100-3150 cm -1 and 1450 cm -1 , respectively [25]. Furthermore, the FTIR spectra in Figure 2(a) revealed that the peaks at 1640 cm -1 are due to -C=C stretching vibration [26]. C=N and C-N between the nitrogen of the imidazolium ring and the first carbon, respectively, are responsible for the peaks at 1417 and 1145 cm -1, which are attributed to the functional group between the imidazolium ring and alkyl groups [27]. In comparison to bromide-containing IL counterparts, the FTIR spectra of samples S-2 and S-4, which are substituted by BF 4 -, show similar peaks but less shifted vibrational bands. The stretching vibration of anion BF 4 causes a new peak in the spectra of samples S-2 and S-4 at 1130 cm -1 and 1050 cm -1 , respectively [28,29]. The B-F peak (1050-1070 cm -1 ) due to the long cationic group accompanying BF 4 is supported by the literature [28]. At 850 cm -1 , C-N (bop) can also be seen.
Thermogravimetric analysis (TGA) was used to collect data on the thermal degradation of the total % mass loss of imidazolium-based ILs that had been prepared. The results are plotted in Figure 2(b), indicating that the thermal stability of the four synthesized ionic liquids is ranked S-4, S-3, S-2, and S-1. At 100°C, the desorption of adsorbed water onto the surface of the samples resulted in a small weight loss. Small initial weight loss is due to remaining organic solvents

Adsorption Science & Technology
and physically adsorbed water due to the hydrophilic nature of imidazolium-based ILs at temperatures between 100 and 200°C [30]. Then there was the 80 percent weight loss for all samples at temperatures ranging from room temperature to 323°C, which was attributed to the breakdown of the organic moieties. It can be seen from the curves that the samples are thermally stable above 300°C, which is useful information for the thermal stability of different ILs. Above 323°C, it can thus be concluded that the sample S-4 has the highest thermal stability which indicates that the stability increases with the increase in alkyl chain length of cations while the samples containing BF 4 are effectively thermally stable than samples containing -Br -.
X-ray diffraction analysis was used to determine the crystallinity and purity of the synthesized ILs (Figure 2(c)). The sharp peaks and high intensity of reflections revealed that all samples had well-crystalline structures (S-1 to S-4). The reflections observed in the diffraction patterns of samples S-2 and S-4 were narrower and more intense than those observed in the diffraction patterns of samples S-1 and S-3, indicating that the BF 4 treatment crystallized better than the Brtreatment. Furthermore, the broadening of diffraction peaks in samples indicated very small crystallite sizes in the 22-24 nm range. The samples were all pure phases in every case. There are small shifts and differences in the intensity of the XRD diffraction patterns, indicating that the crystal structure of imidazolium-based ILs has changed as a result of the reaction.
According to the Scherrer equation, it can be noted that the crystal size of synthesized ILs decreased from 24.10 nm for sample S-1 to 22.65 nm for sample S-2, but it remained almost the same (22.30 nm) for sample S-3 and 22.70 nm for sample S-4. Figure 3 shows the SEM images and surface morphology of the functionalized imidazolium-based ILs. All of the data  was collected at a magnification of 10 K, and a micrograph with a size of 5 m was chosen. The well-ordered arrays of agglomerated flat rod-like sheets, which were typical morphology of periodic imidazolium-based ILs, are clearly visible. When comparing sample S-3 to other samples, the highest uniformity was found, indicating the presence of various imidazolium-based ILs. When the carbon chain was increased from C1 to C2 (S-3, S-4), imidazolium-based ILs became more assembled, predicting cleared rod-like structures, as shown in Figure 3. These characteristics gain support from the cited literature [31] as well.
The specific surface area, micropore volume, and micropore area of as prepared imidazolium-based ILs are listed in Table 2, to obtain additional information regarding the textural properties of the prepared ILs. The surface area of the reported imidazolium-based ILs was much smaller in all cases than the ones found in this study [14]. The use of the solvent in the preparation resulted in a large surface area and porosity, also supported by cited research [32]. For all samples, there are no obvious changes in surface area or pore volume.
Ionic liquids based on cationic composition (imidazole, 2-ethyl imidazole) were subjected to 1 H NMR analysis for structure elucidation. 1 H NMR spectra of samples S-1 and S-3 were taken at 400 MHz using dimethyl sulfoxide (DMSO) as solvent as shown in Figure 4.  [33]. The doublet (d) peak at 7.9 ppm shows the influence of NH groups on protons from both sides, as can be seen from the results. Protons present on neighboring positions at carbon "d" and "e," respectively, can be attributed to two triplet (t) peaks at 2.79 and 3.44 ppm. The splitting of peaks into a triplet is caused by neighboring protons of the imidazole ring.
Two doublet peaks at carbon position "a" and "b" (8.13 and 8.19 ppm) are designated to protons present inside the imidazole ring. It can be due to the change in the proton environment due to chemical shifts at carbon "a" and carbon "b" [34].

Adsorption of Pirimicarb by the Functionalized
Imidazolium-Based ILs. The efficiency of the prepared materials as a potential adsorbent was investigated after the successful synthesis of various types of imidazolium-based ILs. The synergy between two effects, (i) the counter anions (i.e., Cland BF 4 -) and (ii) the various cation substituents as a hydrocarbon chain attached with imidazolium-based ILs, initially affected the adsorption of pirimicarb onto the various types of imidazolium samples. This discovery revealed that the effect of BF 4 on adsorption characteristics is more noticeable than the effect of Brand that the longer chain length has a significant impact on the adsorption process. It is possible that the lower effect of Br --based imidazolium adsorbent is due to Br -'s complete dissociation in water, whereas hydrophobic BF 4 anions are very stable in solution and nearly immiscible [35]. However, as the chain of hydrocarbons lengthens, the effect of BF4-diminishes (sample S-4). The adsorption follows the sequence S-3 (75%) > S-2 (74%) > S-4 (58%) > S-1 (18%).
According to the literature, the weaker the intramolecular hydrogen bonding between the C(2)-H and the anions, the longer the N-alkyl side chains [36]. As a result, longer alkyl chain ILs have a greater ability to separate pirimicarb. This behavior can be seen in S-1, which has a shorter side   7 Adsorption Science & Technology chain than S-3, resulting in less interaction to form hydrogen bonds with pirimicarb and due to the close proximity of the cation and Br - [3,14]. Due to the large volume used by the benzyl group (in pirimicarb) matched to the allyl substituent, S-1's ability to extract pirimicarb from liquid outperformed S-3's, and as a result of the steric hindrance caused by the larger benzyl group, the chloride ion was unable to form an H-bond with phenol [37].
Following that, it is worth noting that the distance between the chloride ion and the cation is optimal for forming a hydrogen bond with phenol [3,14]. The branched structure has higher hydrophilicity than the linear structure [38].
The change in separation capability has two justifications. For starters, it has to do with the ILs' ability to form hydrogen bonds with pirimicarb. The main mechanism in samples S-1 and S-3 is the bromide ion (Br -) of the ILs, which acts as an electron donor to the pirimicarb groups containing N and/or O. The Brion has a higher chance of making contact with pirimicarb, resulting in a higher degree of hydrogen bonding in the system. Secondly, their 1 H NMR spectrum demonstrates the role of aromatic moieties and unsaturated substitutes in the stronger interaction of ILs with the aromatic ring of pirimicarb. This is due to unsaturated substitutions on the cationic imidazolium ring, which can attract aromatic compounds more efficiently than their alkyl counterparts [18]. The intensity of the C(2)-H can be endorsed from the 1 H NMR chemical shift (δ, ppm) of the ILs. The higher the C(2)-H chemical shift, the stronger its interaction with the anion, thus decreasing the possibility of the anion to form H-bonding with pirimicarb [34]. Another point to consider is how the larger ethyl propyl group hampered the ability of the BF 4 ions to form a Hbond with pirimicarb in samples S-2 and S-4 (S4 is lower as a result of the hindrance). As a result, it is important to remember that there is an ideal distance between chloride ions and cations for forming a hydrogen bond with pirimicarb [3,14,38]. When the hydrophobicity of pirimicarb is lower, it offers dispersion, or/and hydrogen bond interactions appear to play a significant role in the separation capability of the studied ILs, this change is more pronounced.
The effect of contact time was investigated thoroughly from 5 to 200 minutes in the case of a dosage of 10 mg in order to establish the equilibrium required for mass transfer between two immiscible phases. It can be observed that from 5 to 30 min, the rejection capability was greatly improved ( Figure 5). This pattern may have emerged as a result of the initial accumulation of pirimicarb on the active sites of ILs surface, with the majority of binding sites being used within 30 minutes. Further separation experiments are carried out above 30 min to confirm that the required equilibrium was reached, but there is no significant boost due to the lack of vacant adsorption sites [39]. The extraction capability of pirimicarb reached equilibrium after 30 min, and thus, the duration of 30 min was active as the optimum time for extraction of pirimicarb from the orchard waste water. Literature studies show that 30 min is a good time to attain equilibrium in order to remove pesticides using functionalized ILs [40].
The graphics plotted in Figure 6 can be used to analyze the effect of the initial pirimicarb concentration. According to logic, the separation efficiency decreases as the initial pirimicarb concentration rises, which could be due to pirimicarb equilibrium and saturation in ILs, as previously reported in the literature [6]. Experiments were carried out with varying lower concentrations of pirimicarb (3, 5, and 7 mg/L) in real wastewater from river streams, each sampled from a different area. Figure 6 shows that as the concentration of adsorbate increases from 3 to 5 mg/L, separation efficiency increases, followed by a decrease in adsorption rate at 7 mg/L. When interacting with pirimicarb at lower concentrations, the ratio of available binding sites on the surface of the adsorbent is larger [2]. It could be due to the saturation of active sites on the adsorbent surface. The S-3 is effective at removing pirimicarb at concentrations of 5 mg/L or less after 30 minutes.

Adsorption Isotherms, Kinetics, and Thermodynamic
Studies. The adsorption rate is a critical factor in practical water treatment. The mass transfer and adsorption mechanisms were studied using kinetic models of pseudo-firstorder, pseudo-second-order, and intraparticle diffusion (expressed in Table S-2). The deliberate correlations for the pseudo-first-kinetic and second-kinetic models, as listed in Table S-3, are close to unity, according to the obtained results. As a result, the pseudo-first-kinetic model is able to accurately predict pirimicarb adsorption kinetics on the surface of imidazolium-based ILs. Further, the chemisorption is not the rate-limiting for the process of adsorption which is maybe due to the degree and shape of porous available for adsorption, also supported by literature [41].
The intraparticle diffusion model [42] was applied to describe the competitive adsorption. The initial rate of intraparticle diffusion is obtained by linearization of the curve q t = a + k int (t 0:5 ). The plot of q t against t 0:5 may present multilinearity [43]. As presented in Table S-2, the linear plots are owing to the macropore distributions that are the available sites for adsorption. The results indicate that three steps occur in the adsorption processes for imidazoliumbased ILs. The first linear step (R 2 − 1) is dedicated to the external surface adsorption or instantaneous adsorption stage. The second portion is attributed to the gradual adsorption stage where the intraparticle diffusion is rate-  (Table 3), suggesting the sorption processes followed by the intraparticle diffusion model. It shows that the adsorp-tion process takes place through the following steps: (i) transport of pirimicarb in the bulk solution; (ii) film diffusion of these solute at the boundary layer or diffusion of pirimicarb from bulk solution to the external surface of ILs; (iii) the transfer of pirimicarb into the active sites and/or pores (intraparticle diffusion) at the ILs; and (v) diffusion through small pores of ILs.
Finally, based on the kinetic modeling results, it was demonstrated that the adsorption of the polluted pirimicarb onto the prepared imidazolium is governed by physisorption and intraparticle diffusion mechanisms.
The adsorption isotherm is a useful tool for determining adsorption efficiency, which is based on information about the reaction's feasibility as well as the surface properties of the synthesized ILs. At different initial concentrations, Langmuir, Freundlich, and Temkin were used. Table S-2 shows the linear plotting of these adsorption isotherms. Table S-3 shows that using the Langmuir model to simulate adsorption onto imidazolium-based ILs yields a better fit for the experimental adsorption equilibrium, which is indicative of pirimicarb adsorption onto imidazolium-based ILs as monolayer coverage and constant adsorption energy.  Table 3: Kinetic parameters of pirimicarb adsorption onto prepared imidazolium-based ILs.

Adsorption Science & Technology
Furthermore, pirimicarb and the prepared imidazolium-based IL-bending sites have a strong electrostatic attraction [44]. The Temkin adsorption isotherm was developed to determine the heat of adsorption liberation. The adsorption system based on the heat and pirimicarb sorption processes was analyzed using a uniform distribution of binding energies up to a maximum binding energy, as shown in Table S-3. The effect of temperature on the removal efficiency of pirimicarb was studied thoroughly at the temperature range 25-100°C at the constant dose of 10 mg/L, initial concentration, and contact time of 60 min, and the experimental data are plotted in Figure 7. The temperature was varied from 25°C onward by the varying intervals of 10, 15, 20, and 30, respectively. It is clear that increasing the reaction, temperature increases the pirimicarb removal efficiency. It can be justified from a thermodynamic standpoint because the adsorption process is endothermic in nature and controlled by the enthalpy term [45]. At 75°C, which is assumed to be the solution's equilibrium temperature, the maximum adsorption of 73 percent of pirimicarb was obtained. This could be because as the temperature rises, the randomness of pirimicarb decreases, resulting in increased adsorption. With each increase in temperature after that temperature, the adsorption decreases.

10
Adsorption Science & Technology Thermodynamics plays a significant role in understanding the conversion of energy into mass and vice versa. Thermodynamic studies provide vital information on internal energy variations, as well as the spontaneity and heat change of the adsorption process [45,46]. The estimation of parameters standard free energy change (ΔG°), the standard enthalpy change (ΔH°), and the standard entropy change (ΔS°) is presented in Supp.3. Pirimicarb separation was better at 75°C, confirming the robustness of the adsorbateadsorbent interaction at high temperatures. The weak compactness of the system, which is the core aspect of boosting the randomness at the solid-solution interface, is due to the π-anionic and cationic between pirimicarb and ILs. As a result, the extraction of pirimicarb is enhanced at high temperatures, as evidenced by ΔG°values obtained at various temperature ranges. Negative ΔG°values indicated the likelihood of extraction and the spontaneous nature of the separation process at a given temperature. The decreasing value of ΔG°as temperature rises indicates an increase in the degree of pirimicarb extraction feasibility. Physical adsorption enthalpy (ΔH°) varies from -20 to 40 kJ mol -1 , whereas chemical adsorption enthalpy (ΔH°) varies from -80 to 400 kJ mol -1 . A negative charge on H in this study indicates that the extraction process is physisorption and endothermic in nature. During the separation process, the increased randomness leads to an increase in the degree of freedom at the IL-pirimicarb solution interface.
The positive ΔS°could be reorganized from the point where sodium dehydration causes a large entropy boost in their transfer from water to the ILs [47]. Furthermore, all of the ΔH°values in Table 4 are less than 40 kJ mol -1 , indicating that the pirimicarb extraction by imidazolium-based ILs is consistent with the physical adsorption process [48]. Furthermore, in this system, all of the ΔS°values were positive, indicating that randomness was boosted on the solidliquid interface during the extraction process. The possible cause was that the water molecules on the surface of ILs were replaced by pirimicarb, which has a larger molecule volume [37], increasing the system's entropy value. As a result, increasing the temperature to 75°C helps the synthesized ILs extract pirimicarb.

Extraction Mechanism.
The pseudo-first-order model and intraparticle diffusion model fit the experimental data well. The imidazolium-based ILs enable the separation of pirimicarb from an aqueous solution, according to the pseudo-first-order model. The capability of imidazoliumbased ILs to extract pirimicarb is governed by two significant interactions. In the structure of pirimicarb, the first is the formation of H-bonds, in which the bromide ions act as an electron donor to N. The Br-'s high electronegativity promotes H-bonding, which is important in the separation process. The second driving force for the separation of pirimicarb by imidazolium-based ILs is the π − π conjugation between the modified imidazolium ring and the benzene ring of pirimicarb [11].
The role of aromatic moieties in the strengthening interaction of ILs with the ring of pirimicarb can be seen in their 1 H NMR spectrum, which is surprising. This is because aromatic compounds attracted to cationic imidazolium rings modified with saturated substituents such as alkyl more efficiently than unmodified counterparts [49]. The π − π interaction of pirimicarb's aromatic benzene ring with aromatic moieties of S-3, as well as the H-bonding of Brwith the carboxylic group of pirimicarb, is illustrated in Figure 8(a).
In addition, the solid-liquid extraction of pirimicarbimidazolium-based ILs followed the intraparticle diffusion model. The transfer of pirimicarb ions in this mechanism is usually classified as external diffusion (film diffusion), internal diffusion (intraparticle diffusion), or both (film and intraparticle diffusion). Three sequential steps occur during the extraction of pirimicarb onto imidazoliumbased ILs, as shown in Figure 8(b).

Recycling
Performance of the Adsorbent. From an economic point of view, the ability to regenerate the IL for reuse is one of the important factors for industrial applications because regeneration will reduce reagent costs in removing pollutants.
In previous researches, toluene was used as an extracting solvent for pollutants which is very toxic so the desorption study was conducted after having many trials with chloroform or ethanol [50]. Our results showed a very encouraging potential of ILs for removal of pirimicarb even after six repeated cycles using ethanol.
After complete removal of pirimicarb from orchard wastewater using functionalized ILs, the regeneration capability of sorbents was investigated for repeated adsorption efficiency under the same conditions as those used for virgin adsorbents. After six (6) adsorption/desorption cycles (as shown in Table 5), the performance of the regenerated S-3 showed retention of >70% efficiencies, indicating that S-3 is an excellent reusable adsorbent [51]. Moreover, it was worth mentioning that as the desorption experiment before regeneration was performed using ethanol as extracting solvent [52], functionalized ILs are sustainable to use. The results are quite similar as reported in published literature.

Conclusions
For the first time, pirimicarb can be extracted from orchard wastewater using various imidazolium-based ionic liquids (S-1 to S-4). FTIR, SEM, XRD, TGA, BET, and 1 H NMR spectroscopy confirmed that the fabricated imidazolium ILs were successfully synthesized. According to an XRD analysis, imidazolium-based ILs are crystalline, with an average particle size of >100 nm. The results of SEM were used to investigate the well-organized, needle-shaped surface 11 Adsorption Science & Technology morphology of ILs with a high surface area to volume ratio. ILs that have been synthesized have the ability to extract and separate. In general, the fabricated ILs were more efficient at removing pirimicarb in the following order: S-3 > S-2 > S-4 > S-1. The ILs have good regeneration capability even after six (6) cycles, described by the pseudo-first-order and Langmuir models. The adsorption process is also controlled by the intraparticle diffusion. According to the thermodynamic parameters, pirimicarb extraction is spontaneous and endothermic. Our findings are very promising for the practical application of the synthesized ILs for the removal of pirimicarb from real orchard wastewater and grant a new perspective on the utilization of this approach in water treatment.

Data Availability
The generated and analyzed data during the current study is supplied in this manuscript and is readily available from the corresponding authors upon reasonable request.