Introduction

Since ancient times, the use of metals and their alloys in various aspects of life are considered one of the main pillars on which mankind relied especially, in various fields of industry. In the present study, copper metal was used due to its distinctive properties such as; flexibility, elasticity, hardness, color, low cost, electrical conductivity and resistance to corrosion1,2. However, the exposure of these metals to the corrosion process which in turns leads to the transformation of these metals into more stable state and therefore they were consumed or dissolute when exposed to the aggressive environments resulted in a serious problem3,4. So, many experiments have been carried out to find the best techniques for controlling or preventing the bad effects of the corrosion process which appeared onto the uncover metals risked to rough environments5,6.

Currently, the method of adding inhibitor is one of the most inexpensive, most effective and common methods to reduce the rate of corrosion and they are often added in small quantities7,8. The effectiveness of these compounds to act as the corrosion inhibitors depending on the presence of nitrogen, phosphorus, oxygen and sulfur atoms in their structure resulted in increase the electron density of these compounds9 The performance and interaction of these inhibitors comes through the adsorption of their molecules onto the metal surface depending on their charge and the surrounding medium which may be (basic, acidic or neutral). As a result, the active sites of the metal surface had been blocked; therefore, the corrosion process was hindered. Also, based on the physicochemical properties of these inhibitors such as; electron density of the electrons, the molecular and electronic structure of the molecule10,11. Among of these compounds that were widely used in different fields was the thiosemicarbazones. For recent time, thiosemicarbazones has been used as a perfect organic corrosion inhibitor11. Also, thiosemicarbazones has been used widely in medicinal, pharmacological and biological applications which included cytotoxic, antitumor and antibacterial12,13. In addition, in laboratory it was successfully used as analytical reagent and chelating agent14. And, according to previous studies many uses and importance of the thiosemicarbazones are due to its chemical structure12,15,16,17. Therefore, in the present work the use of thiosemicarbazones derivative (ligand HL) as a corrosion inhibitor had been highlighted dependent on the chemical structure of the thiosemicarbazones and its various applications. So, the synthesized thiosemicarbazone ligand (HL) was examined to be used as a new corrosion inhibitor for copper metal in the corrosive medium (1.0 M HCl). As well as studying some of the electrochemical properties of the ligand (HL) and its Ni (II), Co (II) and Cd (II) complexes, by using cyclic voltammetry technique. In vitro, the test of the antibacterial activity of the ligand (HL) and its Ni (II), Co (II) and Cd (II) complexes were carried out to discover the validity of them as antibacterial compounds. To get more details and a new idea about the previous studies of thiosemicarbazone ligand (HL) and its Ni (II), Co (II) and Cd (II) complexes; a theoretical study including density functional theory (DFT), and molecular docking were evaluated and discussed.

Experimental work

Materials and methods

All the materials used for the preparation of the thiosemicarbazone ligand (HL)[(E)-N/-(1-(4-aminophenyl) ethylidene) morpholine-4-carbothiohydrazide] and its metal complexes were of analytical grade (BDH, Merck and Sigma Aldrich) by means with high percentage of purity. The metal complexes which had been studied in the current work include: -

[(E)-N/-(1-(4-aminophenyl) ethylidene) morpholine-4-carbothiohydrazide-Ni(II)], [(E)-N/-(1-(4-aminophenyl) ethylidene) morpholine-4-carbothiohydrazide-Co(II)], [(E)-N/-(1-(4-aminophenyl) ethylidene) morpholine-4-carbothiohydrazide Cd(II)].

For instance, p-aminoacetophenone (4-Aminoactophenone 99%), ethanol (95.5%), anhydrous CaCl2 (98%), the metal salts (CoCl2, NiCl2 and CdCl2 (99%)) and H2SO4 (99.9%). The compound 4-morpholinethiosemicarbazide (hydrazine carbothioamide) was prepared by the authors according to the literature18,19,20,21,22.

Thiosemicarbazone ligand (HL) and its metal Ni(II), Co(II) and Cd(II) complexes were prepared and their structural properties were studied and interpreted in several methods according to the published literature22. Open circuit potential (OCP), electrochemical impedance spectroscopy (EIS), Potentiodynamic polarization (PDP) and cyclic voltammetry are the electrochemical methods used in this study by using Autolab potentiostat/galvanostat PGSTAT302N. These methods were carried out to test the efficiency of the ligand (HL) as a new corrosion inhibitor for copper metal in the aggressive medium (1 molar HCl). And, to deduce some electrochemical behavior of the ligand (HL) and its Ni (II), Co (II) and Cd (II) complexes.

Disc diffusion method was used to evaluate the antibacterial activity of the ligand (HL) and its Ni (II), Co (II) and Cd (II) complexes against four pathogenic strains of both gram- positive and gram- negative bacteria. Computational methods are applied which gave important evidence about the reactivity center and biological efficiency of the thiosemicarbazones ligand (HL) and its Ni (II), Co (II) and Cd (II) complexes.

Preparation of the thiosemicarbazone ligand (HL) and its metal complexes Ni (II), Co (II) and Cd (II).

Depending on the experimental data that had been presented in the published literature22; the thiosemicarbazone ligand (HL) was synthesized as following: (1) In hot ethanol 0.1 mol of p-aminoacetophenone (13.52 g) was added of to 0.1 mol of 4-morpholinethio semicarbazide (16.12 g). (2) After one hour of begging the reaction; few drops of concentrated H2SO4 acid were added to catalyze the reaction mixture. (3) The product (yellow precipitate) was filtered and washed many times with ethanol and then dried in a vacuum desiccator contains anhydrous CaCl2.

The metal complexes obtained from the reaction of the ligand (HL) with appropriate metal salt had been prepared in two molar ratios (1L:1 M) and (2L:1 M). The metal complexes Ni (II), Co (II) and Cd (II) which had been studied in the current work were prepared in two molar ratios (1L:1 M), for Ni (II), Co (II) complexes and (2L:1 M), for Cd (II) complex. Ni (II), Co (II) and Cd (II) complexes have been synthesized according to the following steps: (1) Dropwise addition of 0.01 mol of ethanolic solution (35 ml) of metal chloride MCl2.nH2O: M (Ni (II), Co (II) & Cd (II)) to 0.01 mol and 0.02 mol of hot ethanol solution from the ligand (HL), to prepare Ni (II) and Co (II) complexes in molar ratio (1L:1 M), and to prepare Cd (II) complex in molar ratio (2L:1 M), respectively. (2) For about four hours at 80 °C the reaction mixture was refluxed. (3) The products were filtered and washed with ethanol several times and then dried in a vacuum desiccator containing anhydrous CaCl2.

In most previous studies, the changing of molar ratios had been affected on stoichiometry of the complexes. For example, building on the published paper referenced with number twenty-two22; the metal complex Zn (II), was prepared in the two molar ratios; (1L:1 M) and (2L:1 M). So, it can be observed from Table 1 the effect of changing the molar ratios for Zn (II) complex as instance22.

Table 1 Comparison between the formula weight, the percentage of elemental analyses, melting points and molar conductance for Zn(II) complex derived from the ligand (HL) in two molar ratios.

In addition, the 1HNMR is similar to the published data22. Table S2, it can be seen that, the metal complex Zn(II), which was prepared in molar ratio (1L:1 M), was separated in E isomer only while the Zn(II) complex in molar ratio (2L:1 M), had existed in Z/E isomer complex and both were confirmed to have octahedral structural. The submitted structures of the ligand (HL) and its (Ni (II), Co (II) and Cd complexes had been presented in Fig. 1.

Fig. 1
figure 1

The proposed chemical structure for metal complexes Ni (II), Co (II) and Cd (II).

All the characterizations of the ligand (HL), and its metal complexes Ni(II), Co(II) and Cd(II) have been presented as supporting information in the supplementary file. For example, the analytical and spectral studies (IR, 1H NMR, mass), which proved that the ligand (HL) chelated in a neutral bidentate pattern through the azomethine nitrogen and thione sulfur atoms; had been shown in Figs. (S1, S2) and Tables (S1, S2, and S3). In addition, the electronic spectra and magnetic moment emphasized the stereochemistry of the metal complexes had been shown in Table (S4). As well, the stability of the prepared thiosemicarbazone ligand (HL) and its metal complexes which was deduced from their thermal analysis (TG, DTG), had been displayed in Fig. (S3) and Table (S5). The results obtained from the TG curves demonstrated that, the studied metal complexes in the present work (Ni (II), Co (II) and Cd (II)), had been shown higher thermal stability than the free ligand (HL).

Corrosion measurement

The testing of the corrosion process was done onto pure copper sheet 1.0 cm2. In a conventional three-electrode cell contains silver/silver chloride as a reference electrode, platinum wire as a counter electrode and copper samples as a working electrode. The electrochemical methods include (open circuit potential, potentiodynamic polarization and electrochemical impedance spectroscopy), which had been performed by using an Autolab potentiostat/galvanostat PGSTAT302N. Firstly, the copper samples were abraded with emery papers of grades 600, 800, and 1200 after that degreased in acetone then washed thoroughly with double-distilled water and finely dried. The copper samples had been immersed in the corrosive medium (1.0 M HCl) with different concentrations of the thiosemicarbazone ligand (HL) [1 × 10–7, 1 × 10–6, 1 × 10−5and1 × 10–4 M] for 60 min; until steady state potential was reached. After that, the polarization process was carried out at scan rate of 1 mV/sec and at room temperature. It can be noticed that, in the corrosion test the ligand (HL) was only used as a corrosion inhibitor without using its Ni(II), Co(II) and Cd(II) complexes. This observation was attributed to that; these metal complexes are insoluble in the aqueous medium.

The electrochemical impedance spectroscopy (EIS) assessments were recorded after immersion of the working specimen in the tested solution for 60 min in the frequency range from 100 kHz to 0.01 Hz and the AC signal was 10 mV peak to peak. After that, the impedance data was resolved and fitted.

Cyclic voltammetry study

Cyclic voltammetry technique was applied to deduce some of the electrochemical properties of thiosemicarbazone ligand (HL) and its metal Ni (II), Co (II) and Cd (II) complexes by using Autolabpotentiostat/galvanostat PGSTAT302N at 25 °C. A glass cell with three electrodes was used in this work; silver/silver chloride as a reference electrode, platinum wire as a counter electrode and platinum rod as a working electrode. The laboratory experiment was carried out by preparing 0.005 M solution of the ligand (HL) or its metal complexes with 0.05 M of tetra- butyl ammonium perchlorate (TBAP) in dimethyl sulphoxide (DMSO). The potential range for all the experiments of (HL), and its complexes was recorded between (− 1.5 and + 1.5 V) versus Ag/AgCl with different scan rates (50–500 mV s−1) under nitrogen atmosphere. All the voltammograms were recorded under the above atmosphere at the room temperature.

Antibacterial activity

The antibacterial activity of the prepared compounds was evaluated in vitro against 4 pathogenic strains of both gram- positive and gram- negative bacteria. gram- positive strains were represented by Staphylococcus aureus and Streptococcus pneumoniae while gram- negative strains were represented by Escherichia coli and Salmonella Typhimurium using disc diffusion method on Muller-Hinton agar. The test oorganisms were maintained on agar slant at 4 °C and subculture on fresh agar plates. For disc diffusion assay, bacterial liquid cultures were initiated by placing a loop of bacteria into 10 ml of lysogenic broth (LB) media. Agar diffusion test was conducted to detect the bacterial susceptibility to the prepared compounds23. A volume of 100 µL of cell culture suspension matching with 0.5 McFarland of each test organism were spread onto the surface of solid agar medium (Muller Hinton agar).

The prepared compounds were adjusted to a concentration of 50 mg/mL using DMSO as solvent. Filter paper discs with a diameter of 7 mm each were impregnated with 15 µL of each of the different compounds. Ofloxacin discs (OFX-5) were used as standard antibiotics and filter paper discs impregnated with 15 μL of DMSO were also used as control for the solvent. Then the agar plates containing microorganisms soaked with paper discs (5 µg) were incubated at 37 ± 0.1 °C for 24 h to allow bacterial growth. After incubation, zones of inhibition were measured as the clear zones around each disc in mm using a ruler. The experiment was carried out in triplicates for statistical relevance and the Mean ± SE of results was calculated.

Surface analysis

The surface morphology and composition of the copper sample was investigated after it was examined in the tested solution (1.0 M HCl) without and with the optimum concentration of the thiosemicarbazone ligand (1 × 10−7 M). Scanning electron microscope (SEM) with energy dispersive X-ray spectrometer (EDX) analyses were used to achieve the above purpose by (SEM/ EDS) Model FEG Quanta 250, Holland.

Computational methods

The starting geometry of the ligand (HL) and all studied complexes (Ni (II), Co (II) and Cd(II)) were prepared via GaussView 624. and optimized using Gaussian 16, Revision C.0125, using DFT/CAM-B3LYP method and LanL2DZ basis sets26,27. Frequency calculations had been performed to ensure the absence imaginary frequencies at the same level of theory. Frontier molecular orbitals had been studied in the ground state to get a conclusion about the electronic natures of the studied compounds. Electrostatic potential maps28 were analyzed to identify the reactivity centers of the ligand and the studied complexes.

Electronic parameters derived from DFT, such as, energy of HOMO (EH), energy of LUMO (EL), band gab (ΔE), absolute softness (S)29; which indicate the capability of the ligand or complex to form a covalent bonds, global hardness (η); that related to the struggle of the system to exchange electronic charge with the environment, electrophilicity index (ω); which describes how does the stabilization energy of a given system affected via gains an additional electronic charge from the surrounding, nucleophilicity index (N); that is the inverse of the electrophilicity, (1/ω), chemical potential (µ); that regulates the tendency of the electrophile to accept more electronic charge are all calculated as the following30,31,32

$$\Delta {\text{E}} = {\text{ E}}_{{{\text{LUMO}}}} - {\text{E}}_{{{\text{HOMO}}}}$$
(1)
$${\text{I}} = - {\text{E}}_{{{\text{HOMO}}}}$$
(2)
$${\text{A}} = - {\text{E}}_{{{\text{LUMO}}}}$$
(3)
$$\eta = \left( {E_{HOMO} - E_{LUMO} } \right)/2$$
(4)
$$\sigma = 1/\eta$$
(5)
$$\mu = - \left( {1 + A} \right)/2$$
(6)
$$X = \left( {I + A} \right)/2$$
(7)

where EHOMO and ELUMO represent the energies of HOMO and LUMO, respectively and ΔE, is the band gap.

Molecular docking

Molecular docking was conducted for the ligand (HL) and all studied complexes to explore their biological efficiencies toward ribosyltransferase (PDB ID: 3GEY). The AutoDock 4.0 software package was employed to run molecular docking using the crystal structure downloaded from protein data bank. The binding site was explored using a discovery studio using central ligand inside the cavity of protein.

Steps of docking were followed the following procedure33,34,35:

Ligand preparation

The optimized geometry obtained from gaussian was prepared using discovery studio after download of the protein from protein data bank. Routinely process was performed to add hydrogen and gastegier charges.

Protein preparation

The structure of ribosyltransferase (PDB ID: 3GEY) was obtained from the protein data bank RCSB (https://www.rcsb.org/). Then, the discovery studio software was used to identify and visualize the active site with the studied protein. The structure of (3GEY.pdb) was isolated from the ligand and cleaned from all heteroatoms and water molecules to ensure that the active site is free from ligand before docking process. The hydrogen atoms and Kollmann charges were added automatically from the Auto Dock software.

Receptor grid generation

Automatically generation of the grid via Auto Dock 4.0 had been processed by selecting the active site residues of protein (PDB ID: 3GEY).

Docking via auto dock 4.0

The interaction mode of the ligand (HL) and all studied complexes were predicted in the active site of 3GEY through rigid docking via Auto Dock 4.0. The ligands were docked onto the active site through default setting of Lamarckian genetic algorism. After docking, the individual binding conformations of each ligand were observed, and the interaction with the protein were studied. The best and most energetically favorable conformation structure was selected based on the best fitness function detected through the algorism. Then, the resulting docked structures were quantified in terms of binding energy (Kcal/mol). The predicted binding free energy was used as criteria for ranking the compound potency.

Results and discussion

Open circuit potential test (OCP)

The values of the open circuit potential (OCP) of the copper samples in a solution of (1.0 M HCl) in absences and presence of the inhibitor (HL) were measured and drawn as shown in Fig. 2. Based on Fig. 2, the values of the open circuit potential (OCP) had been shifted in a positive direction from (− 0.236 to − 0.189 V) at concentrations (1 × 10–4, 1 × 10–5, 1 × 10–6 & 1 × 10−7 M) of the inhibitor (HL). This result was attributed to the adsorption of the inhibitor molecules (HL) onto the copper surface resulted in formation of a protective film36. Therefore, the active sites of the sample surface had been blocked because of the deposited film which led to hindering the penetration of the chloride ions to the metals surface.

Fig. 2
figure 2

Open circuit potentials (OCP) as function of time for copper metal in 1.0 M HCl solution without and with different concentrations of the inhibitor (HL) recorded at 25 °C.

Potentiodynamic polarization studies

The anodic and the cathodic Tafel curves of thiosemicarbazone ligand (HL) had been investigated after the potentiodynamic polarization method (PDP) was carried out to understand the behavior of the ligand (HL) as a corrosion inhibitor. After inspection and investigation of the results, Fig. 3, showed the effect of adding different concentrations of thiosemicarbazone ligand (HL) to 1.0 M solution of HCl as the corrosive medium onto the copper metal. It can be noted that, both cathodic and anodic branches were safely changed in another meaning the addition of the inhibitor (HL) affected on the corrosion mechanism of the electrolyte (1.0 M HCl) by retarding or inhibiting the hydrogen evolution and the metal dissolution reaction37.

Fig. 3
figure 3

Polarization curves of the copper metal in 1.0 M HCl solution containing various concentrations of the inhibitor (HL) recorded at 25 °C.

Table 1 shows the electrochemical polarization parameters (the corrosion potential (Ecorr) the corrosion current density (icorr) the cathodic and the anodic Tafel slopes (βc & βa) and the corrosion rate (CR)), which had been deduced from the experimental data of Fig. 3. Depending on Fig. 3, and on the date listed in Table 1, it can be observed that, the corrosion rate of the copper sample recorded the lowest value (0.0009 mm per year) for 1.0 M solution of HCl contains 1 × 10−7 M concentration of the inhibitor (HL) as it was considered the optimum concentration. The percentage of the inhibition efficiency was calculated using Eq. (8) which exhibited the maximum value about (94.66%) at the ideal concentration of (HL).

$$IE\% = \frac{{i_{corr}^{o} - i_{corr} }}{{i_{corr}^{o} }} \times 100$$
(8)

where \({i}_{corr}^{o}\) and \({i}_{corr}\) are the corrosion current density of the copper sample in the solution 1.0 M HCl without and with different concentrations of the inhibitor (HL) respectively.

While an inhibitor concentration higher than 1 × 10−7 M was used, the corrosion rate reported higher value and therefore the percentage of calculated inhibition efficiency was decreased. This result was clearly attributed to the active sites of the copper surface i.e. when these active sites of the metal completely covered by the adsorbed inhibitory molecules; hence there is no chance for more inhibitory molecules to be adsorbed so any increase of the inhibitor concentration does not change the efficiency38. However, it was noticeable that the corrosion process still occurred; this result means that the protective layer does not change but the corrosion activity increased against the immersion time. Therefore, because it was becoming clear that the concentration factor effects on the corrosion process so the different added concentrations of the inhibitor (HL) would be arranged according to increase of the percentage of the inhibition efficiency or decreasing the values of the corrosion rate as follows: [1 × 10–7 > 1 × 10–6 > 1 × 10–5 > 1 × 10–4 M]. Also, there are another factors effected on the rate of corrosion and the inhibition efficiency such as; the mechanism of protection, types of inhibitor and their structure39.

It was cleared from Table 1, that the corrosion current density (icorr) recorded the lowest value 0.086 µA/cm2 at the concentration 1 × 10–7 M of the inhibitor (HL) beside it can be noticed the decreasing of the cathodic and anodic current values (βc & βa) in presences of different concentrations of the inhibitor (HL) in comparing with the blank. This result indicates that the addition of the inhibitor (HL) affected the reactions of the system, which includes the hydrogen evolution reaction and metal dissolution reaction.

Through the data recorded in Table 1, and Fig. 3, it was observed that the cathodic slope offered slight displacement in comparing with the anodic slope; this result indicates that the anodic reaction was more inhibited by meaning that the addition of the inhibitor (HL) prevent in a great extent the hydrogen evolution reaction and also retard the anodic dissolution of copper metal. Therefore, the anodic current can be explained in more detail as follows; the presence of the chloride ions during the polarization process simulates the anodic current to demolition of the localized anodic oxide film and encourage formations of the copper chloride film. This result indicated that, during the anodic period the anodic current became far from the corrosion front, therefore, gave a chance for cathodic activity which led to inhibit the hydrogen evolution and then hindering the corrosion process40. In addition, the anodic behavior can be also interpreted as follow; the anodic period exhibits three anodic regions: (1) the region near or close to the corrosion potential Ecorr called the active dissolution region as a result of the anodic dissolution of the copper metal (2) the second region called the passivity region as a result of formation the copper chloride film and (3) the third region called the dissolution of the anodic passive layer41.

Therefore, the reaction of the copper metal in this acidic medium 1.0 M HCl can be explained according to the following equation:

$$2Cu+4HCl+{O}_{2}\rightleftharpoons {Cu}^{+2}+4{Cl}^{-}+2{H}_{2}O$$
(9)

Thus, this result refers to that the inhibitor (HL) can act as mixed- type inhibitors mostly anodic type inhibitors42,43. It was noticeable from the values of the corrosion potential (Ecorr) in Table 1, that it does not show regular pattern towards positive or negative direction beside the shifting of their values to less than 85 mV in comparing with its value to the blank, this result confirms the use of the inhibitor (HL) as mixed-type inhibitors44,45.

Electrochemical impedance spectroscopy (EIS)

Corrosion mechanism, surface properties, adsorption process and supporting the data obtained by potentio-dynamic polarization method can be confirmed by powerful technique which was (EIS)46. In this method, the corrosion process of the copper samples in a solution of 1.0 M HCl in the presence and absences of various concentrations of the inhibitor thiosemicarbazone ligand (HL) was investigated at room temperature 25 °C. The impedance spectra Nyquist and Bode plots of the copper specimens without and with the inhibitor (HL) in acidic medium 1.0 M HCl were investigated and reported in Fig. 4. The spectrum of Fig. 4a showed one capacitive loop which reached maximum size after addition of the concentration 1 × 10–7 M of the inhibitor (HL) to solution1.0 M HCl.

Fig. 4
figure 4

(a) Nyquist (b) bode modulus and (c) bode phase angle plots of the copper metal in 1.0 M HCl solution containing different concentrations of the inhibitor (HL) at 25 °C.

This result indicates that the substrate impedances the corrosion process by forming a protective layer of the adsorbed inhibitor molecules on the copper surface. Also, the appearance of the curves of the Nyquist Fig. 4aby one capacitive loop proved that the charge transfer was the controlling factor in the corrosion process47,48.

The experimental parameters of EIS are established in Table 2. It can be concluded from Fig. 4a, and Table 2, that the capacitive loop size and the charge transfer resistance (Rct) had been increased according to the concentrations of the inhibitor (HL) as follows: [1 × 10–7 > 1 × 10–6 > 1 × 10–5 > 1 × 10–4 M]. As can be seen from Table 2, that the charge transfers resistance (Rct) reached the highest value 92.93 Ω cm2 at the concentration 1 × 10−7 M of the inhibitor (HL). And, by comparing the results deduced from PDP method and with the results obtained from EIS method; the matching between the two dates can be observed.

Table 2 Corrosion parameters of the copper samples after being examined in a solution of 1.0 M HCl contain various concentrations of the inhibitor (HL) at 25 °C.

This result indicates that the redox reactions occurred slowly and the charge transfer resistance more difficult so it was prevented the charge transfer at the metal/solution interface i.e. penetration of the copper surface by the chloride ions had been controlled49,50,51.

The percentage of the inhibitor efficiency was calculated according to the following equation:

$$IE\% = \frac{{R_{ct}^{o} - R_{ct} }}{{R_{ct}^{o} }} \times 100$$
(10)

where \({R}_{ct}^{o}\) and \({R}_{ct}\) are the charge transfer resistance with and without the inhibitor (HL) respectively. According to the EIS method, and as be expected the Nyquist plots will be given a perfect semicircle but it does not appeared in that way; in general this deviation was related to the frequency dispersion, the adsorption of chloride ions on the surface, the factors of roughness and heterogeneity of the sample surface52,53,54. Obviously, the Bode plots Fig. 4b, displaced a single phase with higher values in the region of low frequencies. This result proves that there was one-time constant which explained the reactions occurred onto the copper surface. In addition, it can be observed from Fig. 4c, that, the phase angle showed displacement approximately 80° which confirms the presences of a protective layer of the inhibitor molecules presented on the sample surface. This protective layer resulted in reducing the surface heterogeneity by blocking the most active sites and then impeded the adsorption of the chloride ions55,56 as well there was no possibility for the diffusion process57. A simple equivalent circuit modal in Fig. 5, was used to analyze the experimental data of the EIS spectra for the copper samples in 1.0 M solution of HCl without and with the inhibitor (HL) where (Rct) is the charge transfer resistance (Rs) the solution resistance (Cdl) the double layer capacitance and (Q) refers to the capacitance of the part that absorbed the inhibitor molecules.

Fig. 5
figure 5

Equivalent circuit model used to fit the impedance data (EIS).

The double layer capacitance Cdl was calculated according to the following equation:

$$f(-{Z}_{max}^{//})=\frac{1}{2\pi {C}_{dl}{R}_{ct}}$$
(11)

where the \((-{Z}_{max}^{//})\), is the maximum imaginary component of the impedance.

In addition, it can be seen from Table 2, that the double layer capacitance was decreased in presence of the inhibitor (HL) which occurred as a result of a decrease in the dielectric constant58 or as a result of increase in thickness of the double layer formed on the surface of the metal. This result indicates that, the inhibitor (HL) molecules had been adsorbed at the copper/solution interface59.

Cyclic voltammetry studies of the ligand (HL) and its metal Ni (II), Co (II) and Cd (II) complexes

The oxidation and reduction reactions of ligand (HL) and its Ni (II), Co (II) and Cd (II) complexes of concentration 0.005 M with 0.05 M of tetra-butyl ammonium perchlorate in dimethyl sulphoxide (DMSO) with potential range between − 1.5 and + 1.5 V with different scan rates 50–500 mV s−1.

CV study of the ligand (HL)

Figure 6, shows the cyclic voltammograms of the ligand (HL) and its Ni (II), Co(II) and Cd (II) complexes at scanning potential ranged between − 1.5 and + 1.5 V and scan rate 50 mV s−1. It can be observed that for the ligand (HL) there were two oxidation peaks Epa1 at + 0.041 V and Epa2 at + 0.231 V that attributed to the oxidation of amine group (NH & NH2), and the broad reduction peak Epc at − 0.394 V which may be related to the reduction of azomethine or thione groups60,61,62,63,64.

Fig. 6
figure 6

Cyclic voltammograms of 0.005 M solution of the ligand (HL) and its Ni(II), Co(II) and Cd(II) complexes with 0.05 M solution of TBAP in DMSO at scan rate 50 mV s−1.

CV study of Ni (II) complex

The cyclic voltammogram of Ni (II) complex at scan rate 50 mV s−1 in Fig. 6, presented one oxidation peak at + 0.471 V corresponding to the oxidation of Ni (II) to Ni (III) and one cathodic peak at − 0.707 V attributed to the reduction of Ni (III) to Ni (II)65.

After comparing between the position of the oxidation peak for the ligand (HL) and its Ni (II) complex it can be noted that, the value of oxidation peak increased in a positive way of the Ni (II) complex more than the ligand (HL)63 as well, the disappearance of azomethine group. The redox process that explained the electron transfer of Ni (II) complex can be written as follows:

$$[{\text{Ni}}^{{ + 2}} ({\text{HL}}){\text{Cl(H}}_{{2}} {\text{O)}}_{{3}} ]^{ + } \rightleftharpoons [{\text{Ni}}^{{ + 3}} ({\text{HL}}){\text{Cl(H}}_{{2}} {\text{O)}}_{{3}} ]^{ + 2} + e^{ - }$$

CV study of Co (II) complex

The redox reaction of Co (II) complex at scan rate 50 mV s−1 exhibited two anodic peaks and three cathodic peaks as it was presented in Fig. 6. It can be investigated from the cyclic voltammograms of Co (II) complex that the oxidation peak Epa1 at + 0.630 V was due to the oxidation of the amine group while the oxidation peak Epa2 at − 0.548 V was related to the oxidation of Co (II) to Co (III). In addition, the cathodic peak Epc1 at − 0.855 V was corresponding to the reduction of Co (III) to Co (II) and the two reduction peaks Epc2 at − 0.567 V and Epc3 at − 0.253 V had been related to the reduction of azomethine and thione groups60,61,62,63,64.

By comparing the cyclic voltammograms of the ligand (HL) and its cobalt complex it can be observed that the oxidation peaks of Co (II) complex go to more positive value than the ligand (HL) and the reduction peaks to more negative value. This result can be interpreted as follows; the trend of oxidation peaks to more positive values may be related to the relative stability between the oxygen and sulfur atoms when bonding with cobalt ions64. While the trend of the reduction peaks to more negative values confirm the participation of the azomethine and thione groups in the coordination bonding. The oxidation–reduction process that can be used to explain the electron transfer of the cobalt complex can be described as follow:

$$[{\text{Co}}^{{ + 3}} ({\text{HL}}){\text{Cl}}_{{2}} {\text{(H}}_{{2}} {\text{O)}}_{{2}} ]^{ + } + {\text{e}}^{ - } \rightleftharpoons [{\text{Co}}^{{ + 2}} ({\text{HL}}){\text{Cl}}_{{2}} {\text{(H}}_{{2}} {\text{O)}}_{{2}} ]$$

CV study of Cd (II) complex

It can be seen from the cyclic voltammogram of Cd (II) complex at scan rate 50 mV s−1 in Fig. 6, that there was one ooxidation peak at + 0.761 V which it may be related to the oxidation of cadmium metal Cd (0) to cadmium anion Cd (II). And the cathodic peak at − 0.768 V which may be attributed to the reduction of Cd (II) to Cd (0) so the cathodic and the anodic reaction in this case can be written as follow:

$${\text{Cd(II) + 2e}}^{ - } \rightleftharpoons {\text{Cd(0)}}$$
$${\text{Cd(0)}} \rightleftharpoons {\text{Cd(II) + 2e}}^{ - }$$

In addition, the reduction peak at − 0.664 V may be corresponding to the reduction of azomethine or thione groups. By comparing between the position of the anodic peak of the ligand (HL) and its Cd (II) complex it can be noted that, the value of oxidation peak increased in a positive direction for the Cd (II) complex + 0.716 V more than the ligand (HL) which recorded + 0.231 V. The redox reaction that can be used to interpret the electron transfer of Cd (II) complex can be written as follow:

$$[{\text{Cd}}^{{ + 2}} ({\text{HL}})_{2} {\text{Cl}}_{{2}} ] + 2{\text{e}}^{ - } \rightleftharpoons [{\text{Cd}}^{{0}} ({\text{HL}})_{2} {\text{Cl}}_{{2}} ]^{ - 2}$$

The effect of changing scan rate on the ligand (HL) and its Ni (II), Co (II) and Cd (II) Complexes

Cyclic voltammograms of the ligand (HL) and its metal complexes Ni (II), Co (II), and Cd (II) at different scan rates 50–500 mV s−1 had been shown in Fig. 7, as well some of their electrochemical parameters had been investigated and established in Table 3. The anodic peak potential (Epa), the cathodic peak potential (Epc), the anodic peak current (Ipa), the cathodic peak current (Ipc), the peak potential separation (∆Ep), the peak current ratio (Ipa/Ipc) and the half-peak potentials (E1/2) are the electrochemical parameters which they had been deduced.

Fig. 7
figure 7

Cyclic voltammograms of the ligand HL (a) and its Ni (II) (b), Co (II) (c) and Cd (II) (d) complexes at different scan rate 50–500 mV s−1.

Table 3 Electrochemical parameters and inhibition efficiencies investigated from EIS data of the copper metal in 1.0 M HCl solution containing different concentrations of the inhibitor (HL) at 25 °C.

It can be seen from Fig. 7, and Table 3, that, the anodic peak potential (Epa) and cathodic peak potential (Epc) of the ligand (HL) appeared only at scanning rate 50 mV s−1 while at scan rates higher than 50 mV s−1 these peaks had been disappeared. This result can be explained by the fact that, the interaction based on the electrode surface in the presence of the ligand (HL) was under adsorption controlled depending on the existence of the active sites onto the surface of the working electrode and its ability to charge transfer66. As well as, according to the value of the peak potential separation (∆Ep) = (Epa) − (Epc) which recorded + 0.625 V more than + 0.059 V and the ratio of the anodic to the cathodic current peaks (Ipa/Ipc) was about + 0.795 less than one so this result confirms that, the redox process of the ligand (HL) was under quasi-reversible reaction. Also, the ratio of the anodic to the cathodic current peaks (Ipa/Ipc) for the metal complexes Ni (II), Co (II), and Cd (II) recorded value less than one and the values of the peak potential separation more than + 0.059 V as reported in Table 3. This result indicates that, the redox process for these complexes were in quasi-reversible system. In addition, from Fig. 8, which displayed the relationships between the peak potential separation and the scan rates of the metal complexes Ni (II), Co (II) and Cd (II) had been considered as an evidence that the oxidation–reduction process of these complexes under quasi-reversible reaction67. As well, the linear relationships between the square root of the scan rates of the metal complexes Ni(II), Co(II) and Cd(II) with both the anodic and cathodic currents as presented in Fig. 9, was considered as an evidence that the reaction occurred at the working electrode under diffusion control68 for the voltammograms of (a) Ni (II) (b) Co (II) and (c) Cd (II) complexes.

Fig. 8
figure 8

Relationship between the peak potential separation and the scan rate for the cyclic voltammograms of (a) Ni (II) (b) Co (II) and (c) Cd (II) complexes.

Fig. 9
figure 9

Relationship between the anodic and the cathodic current peaks versus square root of the scan rate.

Antibacterial study

The antibacterial activity of the prepared compounds against S. aureus and S. pneumoniae as representatives for gram- positive bacteria o and E. coli and S. Typhimurium as representatives for gram- negative bacteria was measured by measuring the zones of inhibition of bacterial growth using disc diffusion method. The resulting inhibition zones were compared with the inhibition zone of the standard antibiotic Ofloxacin discs (OFX-5), as well as the inhibition zone caused by DMSO Table 4, and Fig. 10. The Co (II) and Cd (II), complexes showed the best antibacterial activity against S. pneumonia with inhibition zones of (1.2 ± 0.2 cm), and (1.1 ± 0.2 cm), respectively as compared to (3.0 ± 0.1 cm), for ofloxacin; and against S. Typhimurium with inhibition zones of (1.0 ± 0.0 cm), and (1.3 ± 0.2 cm), respectively as compared to (3.5 ± 0.1 cm), for ofloxacin. Meanwhile, all compounds did not show any antibacterial activity against S. aureus. The Co (II) and Cd (II), complexes also exhibited antibacterial activity against E. coli with inhibition zones of (1.0 ± 0.1 cm), and (1.0 ± 0.2 cm), respectively as compared to (4.0 ± 0.1 cm), for ofloxacin, Table 5.

Table 4 The investigated electrochemical parameters from the cyclic voltammograms of 0.005 M solution of the ligand (HL) and its Ni(II), Co(II) and Cd(II) complexes with 0.05 M solution of TBAP in DMSO at different scan rates 50–500 mV s−1.
Fig. 10
figure 10

Zone of inhibition of S. Typhimurium, E. coli and S. pneumoni for the inhibitor (HL) and its Ni (II), Co (II) and Cd (II) complexes.

Surface characterization

The surface and constituents of the copper samples had been characterized by scanning electron microscopy SEM and energy dispersive x-ray EDX. Figure 11a, b presents a morphological image for the copper surface after the potentio-dynamic polarization had been carried out in the solution 1.0 M HCl without and with the optimum concentration 1 × 10−7 M of the inhibitor (HL). Figure 11a shows the extent of damage caused onto the surface of the copper sample after it was exposed to an aggressive medium 1.0 M HCl without the inhibitor (HL). Therefore, the dangerous growth of localized attack (pits) on the sample surface can be observed. After adding the ideal concentration of inhibitor (HL) a protective layer was formed on the surface of the sample as shown in Fig. 11b.

Fig. 11
figure 11

SEM micrographs of the copper metal (a) copper sample in the solution 1.0 M HCl without the inhibitor (HL) (b) copper sample in presence of the inhibitor (HL) in the solution 1.0 M HCl at 25 °C.

This result indicates that the inhibitor (HL) can improve the inhibition efficiency of the copper metal against the action of the corrosive media. Energy dispersive x-ray (EDX) analyses of the copper sample in presence of the inhibitor (HL) shows and confirms that, the inhibitor molecules had been adsorbed on the copper surface. This result was illustrated through the appearance of nitrogen and sulfur peaks while the chloride peaks disappeared. This result indicates that, a protective layer of the inhibitor (HL) was formed onto the copper surface which led to impede the penetration of the chloride ions to the surface of the metal and thus prevented the dissolution of the copper metal. This result was presented and tabulated in Fig. 12a, b, and Table 5.

Fig. 12
figure 12

EDX analysis of the copper metal (a) copper sample in the solution 1.0 M HCl without the inhibitor (HL) (b) copper sample in presence of the inhibitor (HL) in the solution 1.0 M HCl at 25 °C.

Table 5 Antibacterial activity of the studied compounds.

DFT analysis

Geometry optimization

The optimized geometry of the ligand (HL) and the studied complexes had been studied and their lowest energy configuration is shown in Fig. 13, and Table 6. The energies of the complexes range from 1700–1800 HF. The polarity of ligand decreases after co-ordination with metals to form complexes which can be observed from the magnitude of their dipole moments. Cd(II) complex had the highest dipole momentum followed by Ni (II) then Co(II).

Fig. 13
figure 13

Optimized molecular structure of HL. Ni (II), Co(II) and Cd(II) complexes.

Table 6 Constituent elements of the copper sample after potentio-dynamic polarization process in the solution 1.0 M HCl in the absence and presence of the inhibitor (HL).

Molecular orbital calculations

Frontier molecular orbital shapes studied in the ground state were illustrated in Fig. 14, along with molecular energy diagram. The global reactivity indexes, such as the ionization potential (I), electron affinity (A), absolute electronegativity (X), absolute hardness (η), and softness (S), for the ligand and the studied complexes were calculated at the same computational level, and the results were presented in Table 6. The band gap between HOMO and LUMO orbitals represents the amount of charge transfer interaction that could take place between the ligand and metal after complexation. The band gab reflects how much the complex will be biologically active30. The molecule with the smaller band gab is associated with high chemical reactivity and defined as a soft molecule69,70.

Fig. 14
figure 14

HOMO and LUMO frontier molecular orbitals along with their energies diagram for the ligand H4L and their complexes calculated in vacuum at CAM-B3LYP/LAN2DZ.

Molecular orbital analysis was done to explain structure activity relationship (SAR) of the ligand (HL) and their chelates (Ni(II), Co(II) and Cd(II)) that were under study66,67,71. In this sense, a molecule’s biological activity and toxicity, based on a theoretical density functional theory, global and local reactivity descriptors had been created. Furthermore, frontier molecular orbitals had been used to assess the global reactivity indices of the substances under study. The HOMO and LUMO (highest occupied molecular orbitals and lowest unoccupied molecular orbitals) are referred to electron donor and acceptor, respectively. The different in energy between HOMO and LUMO (band gab or ΔE) is responsible for kinetic stability and chemical reactivity of the molecule, the high or low band gab are referred to how hard or soft the molecules, in addition the smaller the energy value means the high biological efficiency of the molecule68,69,70,71 The HOMOs and LUMOs of the (HL) are substantially delocalized over thiosemicarbazone ligand Fig. 14. The ligand (HL) and its Cd(II) complex have the lowest values of band gap, which allows them to be the softness molecules among all studied complexes and the highest predicted biologically active molecules. For Cd(II) complex, the HOMO is mainly located above one thiosemicarbazone, meanwhile the LUMO is delocalized over the both chelated ligands, and it follows by Ni(II) and Co(II) complexes in the band gab value and the softness property. For Ni (II) and Co(II) complexes, the HOMOs were mainly located over thiosemicarbazone part, Meanwhile, the LUMOs were mainly distributed over the metal coordination part with some contribution on the ligand unit. To understand this part, Fig. 14, explains the energy level diagram for ligand (HL) and the studied complexes. The HOMO and LUMO of the ligand were destabilized by the addition of the metals in case of Ni(II) and Co(II) complexes, however, the energies are dependent on the properties of the specific metal and mode of coordination.

The energies obtained via DFT calculations were good support to explain the biological results as the ligand and Cd(II) have highest potency in comparison to other chelated complexes.

Molecular docking studies

The studied complexes were derivatives from thiosemicarbazide which are well known for their biological efficiencies. Molecular docking techniques were used to explore their mechanism of action as antimicrobial agents. Molecular docking visualization was performed to predict the interaction binding mode of active inhibitors72,73,74 with the crystal structure of ribosyltransferase (PDB ID: 3GEY)75. The docking analysis results were shown in Table 7. The docking results reveal that both ligand and Ni(II) complex had the highest potential due to high interaction in the active site of the protein and the lowest docking energy compared with the new target compounds. The docking energies for all compounds were in the range from (-6.3: -8.9) Kcal\mol. The Ki explains the potency of inhibitors related to their concentration requirement for half-maximal inhibition. In addition to measuring some important values such as intermolecular and internal interactions surrounding the complexed structure to choose the best active conformer. The best docked pose was selected considering its intermolecular, internal, and inhibition constant (Ki) of the conformational structure. Ki expresses the potency of inhibitor related to its concentration requirement for half-maximal inhibition, all these parameters were tabulated in Table 7. All the compounds were docked in the active site of 3GEY protein efficiently. The binding mode and 3D interaction of the ligand was shown in Fig. 15. The ligand showed three hydrogen bonds with the active site residues Phe536, Asp540 and Ser577 meanwhile, Co(II) and Cd(II) have only one H bond with Asp540 and Tyr41. Figure 15. shows that the best conformation of the docked ligand is shown as a graphical 3D and 2D representations with surrounding residues interaction. There are several docking interactions represented in conventional H-bond, carbon–hydrogen bond, Van der Waals (vdW), and π-lone pair interactions (Table 8). These interactions mainly help in the inhibition efficiency of the synthesized ligand.

Table 7 Theoretical energy calculations and dipole moment of the studied compounds and their interaction products.
Fig. 15
figure 15

2D and 3D docking interactions of ligand (HL) and the Ni(II), Co(II) and Cd(II) complexes in the active pocket of ribosyl transferase (PDB ID: 3GEY) visualized with discovery studio software.

Table 8 Molecular docking scores for all compounds, binding energies, and Protein–Ligand interaction of the synthesized molecules incise the active site of ribosyltransferase (PDB ID: 3GEY).

Conclusions

  1. 1.

    In the present study, the thiosemicarbazone ligand (HL) was examined to be used as a corrosion inhibitor for copper metal when exposed to aggressive media such as hydrochloric acid which was used in this work.

  2. 2.

    The electrochemical measurements applied in this study contains; open circuit potential (OCP) potentio-dynamic polarization (PDP) and electrochemical impedance spectroscopy (EIS).

  3. 3.

    The percentage of the inhibition efficiency was calculated after the electrochemical measurements had been carried out which recorded a percentage value about 94.66% and 92.93% for (PDP) and (EIS) methods respectively.

  4. 4.

    According to the above result, the ligand (HL) is considered as a new corrosion inhibitor for metals.

  5. 5.

    The redox reactions that, occurred onto the surface of the ligand (HL) and its metal complexes Ni(II), Co(II) and Cd(II) had been determined by using cyclic voltammatery technique.

  6. 6.

    The results deduced after the cyclic voltammatery technique was carried out proved that, the system of the oxidation–reduction process of the ligand (HL) and its metal complexes Ni(II), Co(II) and Cd(II), had been under quasi-reversible and diffusion control.

  7. 7.

    To know the redox reactions of the system is very important in our life for example, rusting of iron metal, combustion of fuels such as gasoline or wood, respiration in living organisms, corrosion of metals and photosynthesis in plants

  8. 8.

    The ligand (HL) and its metal complexes Ni(II), Co(II) and Cd(II) exhibited good antibacterial activity against S. pneumonia, S. Typhimurium and E. coli, but the Co(II) and Cd(II) complexes showed the best result.

  9. 9.

    Based on their antimicrobial results, DFT studies have been done to explain the electronic properties of all the compounds studied.

  10. 10.

    The DFT results revealed that both ligand (HL) and Ni(II) complex have the lowest band gap and thus, nearby biological efficiencies. Moreover, the studied descriptors helped us to understand the activities of all the studied complexes based on their electronic configuration.

  11. 11.

    Further, molecular docking study had been performed along with antimicrobial study; the results spot a clear explanation of the compound interaction sites.

  12. 12.

    The modelling results concluded that, the interaction of thiosemicabazone ligand (HL), with the amino acid of the active site increases their activity; specially for the ligand (HL), followed by Ni(II), complex configuration as a promising antimicrobial agent so, it can be used for treating a selected range of microbial infections.