1 Introduction

Schiff bases (ScBs) are chemical mixtures or compounds with azomethine (–HC=N–) or an imine (>C=N–) functional group that are essential parts, which resemble aldehydes or ketones and are frequently employed as catalysts, pigments and dyes, as well as to stabilize polymers [1]. The aromatic aldehyde-based Schiff base molecules are more stable than that of the aliphatic aldehyde-based types, which in many occasions or cases are not even stable. The stability in the former is due to the presence of conjugation whereas the latter is vulnerable to free polymerization [2]. The major class of chemical compounds known as Schiff bases includes a variety of biologically diverse molecules [3,4,5,6,7]. The presence of donor atoms such as oxygen, nitrogen or sulphur in these compounds enable them to possess wide range of biological applications and formation as a bidentate or tridentate chelate ligands enhancing their structural stability with metal ions/atoms or as a mixed ligand chelates [8,9,10,11].

Since the earliest days of the discovery of antibiotics, nature has been the main source of inspiration for the creation of novel antibiotics [12]. Meanwhile, antibiotic resistance has become an increasingly serious public danger in recent years due to its occurrence in hospitals, communities, and the environment. Antibiotic misuse has been linked to an increase in bacterial resistance, which has been linked to a decline in the effectiveness of the scarce medicines that are still accessible [13, 14]. Large doses of antibiotics used in human treatments, as well as for farm animals and even fish in aquaculture, led to the selection of pathogenic bacteria resistant to various medications [15]. Multidrug resistance (MDR) is a kind of acquired resistance microorganisms show to one or more classes of antimicrobials and, on this base, they can be classified into: multidrug-resistant bacteria, extensively drug resistant (i.e., resistant to all but one or two classes) or pandrug-resistant (i.e., resistant to all available classes) [13, 14, 16, 17].

However, there is an urgent need for more efficient antibacterial and antifungal therapies because of the high mortality rates linked to diseases caused by bacteria and fungi as well as the rising quantity of multidrug-resistant strains in which Schiff bases may be taken into consideration. Thiosemicarbazones are a class of organic-based compounds that have been demonstrated to possess a variety of biological activities, such as antibacterial, antifungal, antiviral, and anticancer properties [18,19,20,21]. Earlier this decade, thiosemicarbazones have gained significant recognition as potential drug candidates due to their diverse pharmacological properties. The incorporation of benzaldehyde moiety into thiosemicarbazones has been reported to enhance their antimicrobial activities [22, 23]. Consequently, they are potential candidates for the development of new antimicrobial drugs.

In addition to the experimental antimicrobial and anticancer studies, computational methods and molecular docking have also been employed to investigate the potential activities of Schiff bases and their derivatives [24,25,26]. Herein, we also adopted the computational and molecular docking studies to find out the EHOMO and ELUMO, the global hardness (η) and the energy gap (ΔEgap), Muliken charge distribution alongside Fukui function, electrostatic potential maps (EPM), Monte Carlo simulation for adsorption parameters of the adsorbed molecules on Fe(110) and molecular docking analysis using four different bacterial receptors: 6VBC, IVQQ, 4JVI and 4XVZ for the new synthesized thiosemicarbazone-benzaldehyde derivatives. Computational studies have the advantage of predicting the biological activity of compounds prior to their synthesis and characterization, thereby saving time and resources [27].

Therefore, this study, focuses on the synthesis, computational studies, in-vitro and in-silico antibacterial studies of selected thiosemicarbazone-benzaldehyde derivatives with the aim of exploiting their potent antibacterial activities as alternative antibiotics.

2 Experimental

2.1 Materials and reagents

AK Scientific, Central Drug House (CDH) Chemicals, Sigma-Aldrich, Loba Chemie, Moly Chem, and other well-known commercial organizations provided all of the analytical grade chemicals and solvents utilized, and they were all used immediately. The chemicals are 4-formylbenzonitrile 98% (GC) or 4-cyanobenzaldehyde, 2-hydroxy-5-nitrobenzaldehyde 95%, 4-dimethylamino benzaldehyde, 4-methyl-3-thiosemicarbazide 95%, streptomycin, gentamycin, posaconazole, Muller Hinton agar, absolute ethanol, Dimethylsulphoxide (DMSO). For the preparation of each concentration of all the compounds under research, DMSO solvent was utilized.

2.2 Preparation of the Schiff bases (SBs)

2.2.1 Preparation of the (Z)-2-(4-(dimethylamino)benzylidene)-N-methylhydrazinecarbothioamide (PDMA)

Drop by drop, 1.21 × 10−2 mol (1.27 g) of 4-methyl-3-thiosemicarbazide in absolute ethanol was added to a stirring solution of (1.80 g) 4-dimethylaminobenzaldehyde in approximately 40 milliliter of absolute ethanol. After adding 4–6 drops of acetic acid, the resulting yellowish-green solution was refluxed for 3–4 h. The yellowish-green product that developed after cooling to room temperature was filtered before being recrystallized from ethanol, dried, weighed and stored in a desiccator under anhydrous CaCl2. The title compound’s yield was 1.75 g (61%).

2.2.2 Preparation of the (Z)-2-(2-hydroxy-5-nitrobenzylidene)-N-methylhydrazinecarbothioamide (5NS)

To a stirring solution of 1.08 × 10−2 mol (1.80 g) of 2-hydroxy-5-nitrobenzaldehyde in 20 mL of absolute ethanol, 1.08 × 10−2 mol (1.26 g) of 4-methyl-3-thiosemicarbazide in 15 mL of absolute ethanol was added drop wise. Following the addition of 0.1–0.2 mL drops of acetic acid, the resulting yellow-colored solution was refluxed for 3–4 h. Following filtering, ethanol was recrystallized from the yellow product that formed after cooling to room temperature. 2.45 g (89%) of the product in the title was produced.

2.2.3 Preparation of the (Z)-2-(4-cyanobenzylidene)-N-methylhydrazinecarbothioamide (4CN)

Dropwise addition of 1.37 × 10−2 mol (1.44 g) of 4-methyl-3-thiosemicarbazide in 15 mL of absolute ethanol was made to a stirring solution of 1.37 × 10−2 mol (1.80 g) of 4-cyanobenzaldehyde in 20 mL of absolute ethanol. The resulting creamy-white solution was refluxed for 3–4 h after 0.1–0.2 mL drops of acetic acid were added. The creamy-white product generated after cooling to room temperature was filtered, and ethanol was recrystallized from it. The product in the title was manufactured in 2.89 g (96%) total.

2.3 Antimicrobial studies

All the compounds were screened for their in-vitro antibacterial activity using agar diffusion method.

2.3.1 In-vitro antibacterial assay

The antibacterial activity of the prepared ligands was determined by the agar well diffusion method [28]. The Schiff base (SB) compounds were studied against bacterial isolates obtained from Microbiology Programme of Bowen University, Iwo, Nigeria. Two Gram-positive (Staphylococcus aureus and Bacillus sp (cereus)) and two Gram-negative (Klebsiella pnuemoniae and Pseudomonas sp (aeruginosa)) bacteria were used as test subjects for the compounds. The tested bacterial isolates were grown again over night on Nutrient agar plates to obtain 24 h old culture. The turbidity of the broth was changed to 0.5 McFarland, or 1.5 108 CFU. Then, using a swab stick, each bacterial culture was inoculated by sweeping the swab across the entire Muller Hinton agar surface. In order to achieve a uniform dispersion of the inoculums, this technique was repeated by streaking twice more while rotating the plate. After some minutes, agar well was punched on the surface of inoculated agar plates using sterile 7 mm Cork borer, thereafter 10 µg of the SB compound was filled into the well using sterile micro pipette. The plates were incubated at 37 °C for 24 h after standing at room temperature for 30 min to allow the SB component to diffuse into the agar well. Following incubation, the diameter of the inhibition zone was measured to the nearest millimeter (mm), and all the plates were checked for the presence of bacterial growth inhibition. The test was performed in duplicate while the mean value was recorded. Standard antibiotic Streptomycin (10 µg) and Gentamicin (10 µg) served as the positive control, while DMSO served as a negative control or blank. Presentation of the result is shown in Table 1.

2.4 Computational studies

2.4.1 DFT optimization and Monte Carlo simulation

The Schiff bases (PDMA, 5NS and 4CN) were modeled and subjected to conformation search to obtain the most stable conformers (lowest energy configuration) using molecular mechanics force field before full optimization with a hybrid DFT (B3LYP) and 6-31G(d) basis set [2930], on Spartan 14 software [31]. The level of the theory was chosen because of its consistence with experimental findings [3233]. The molecular descriptors like the frontier molecular orbitals energies (EHOMO and ELUMO), energy band gap, ionization potential, electron affinity, hardness, softness, electrophilicity, fraction of electrons transferred and electron backdonation were obtained from the optimization. These descriptors will provode information about the behaviour of the molecules [34]. The Fukui indices were calculated to ascertain the sites for nucleophilic and electrophilic attacks, according to the method described earlier [35]. The molecules were also investigated for their corrosion inhibitive potentials on Fe(110) using Forcite and adsorption locator tools on Material Studio to obtain the adsorption parameters, as described earlier [293436].

2.4.2 Molecular docking method

A penicillin-binding protein 2 (PBP-2) with pdb ID: 6VBC (resolution 1.55 Å), Bacillus cereus was employed as a receptor for PBP2’s transpeptidase domain, which was isolated from the cephalosporin-resistant strain H041 of N. gonorrhoeae. A penicillin Binding Protein 2 A (PBP-2 A) with pdb ID: 1VQQ (resolution 1.80 Å) was used for Staphylococcus aureus. Pseudomonas species. A transcriptional regulator MvfR with pdb ID: 4JVI (resolution 2.9 Å) was used for Pseudomonas species. A beta lactamase receptor with pdb ID: 4XUZ (resolution 1.5 Å) was used for Klebsiella species. The molecules and standard drugs (streptomycin and gentamycin) were docked at the active sites (x = − 6.06, y = 5.02, z = 22.32 for 6VBC), (x = 17.47, y = 28.49, z = 38.90 for 1VQQ), (x = − 32.45, y = 56.43, z = 7.62 for 4JVI) and (x = 53.9, y = 39.12, z = 10.38 for 4XUZ), as generated by sitemap, all on Maestro/Schrodinger suit [37,38,39].

3 Results and discussion

3.1 Schematic formation of the Schiff bases

The reaction scheme of each Schiff bases formation (PDMA, 5NS and 4CN) from their starting materials and reaction conditions were shown below:

3.2 In-vitro antibacterial studies

In Table 1, the mean value of the synthetic compounds’ antibacterial activity was noted. A standard medication/drug was used to compare the zone of inhibition, which was measured in millimeters. The findings demonstrate that these synthesised compounds (Scheme 1, 2, 3) were active to varied degrees in preventing the growth of the bacteria Staphylococcus aureus, Bacillus cereus, Klebsiella pnuemoniae, and Pseudomonas aeruginosa, which ranged in size from 7.5 to 22.5 mm as shown in figure 1. In general, all of the substances were extremely effective against Klebsiella pneumonia and Staphylococcus aureus but out of the three compounds or ligands, 5NS showed the highest inhibition to Staphylococcus aureus and Klebsiella pneumonia with 21.0 mm and 16.5 mm respectively. In comparison to the standard drugs, it was reveal that against Staphylococcus aureus, gentamycin (22.5 mm) has little higher inhibition of 1.5 mm disparity to 5NS Schiff base (21.0 mm), while the latter exhibit a very high activity than streptomycin (16.5 mm). Interestingly, both gentamycin and 5NS has the same inhibition against Klebsiella pneumonia. Several authors have worked on different types of Schiff bases and have concluded that the presence of imine groups, hydroxyl groups, and nitrogen groups that form part of Schiff bases’ components have the ability to form hydrogen bonding connections with cellular compartments of the bacteria, which may then result in their antibacterial activity [40]. In a way of contrast, 5NS showed no activity against Bacillus cereus and Pseudomonas aeruginosa. Antibiotic resistance in Pseudomonas aeruginosa has been documented, and the formation of efflux pumps present in this bacterium may prevent a drug from passing through their lipid membrane [41]. However, 4CN and PDMA showed activity against Bacillus cereus but not as more active as that of the standard drugs. Interestingly, PDMA (9.5 mm) reveal higher activity of inhibition than the streptomycin drug (9.0 mm) against pseudomona auruginosa, although, less than gentamycin drug (14.0 mm) (Table 1).

Table 1 Antibacterial activities of the Schiff bases and the standard drugs (mm)
Scheme 1
scheme 1

Synthesis of (Z)-2-(4-(dimethylamino)benzylidene)-N-methylhydrazine carbothioamide (PDMA)

Scheme 2
scheme 2

Synthesis of (Z)-2-(2-hydroxy-5-nitrobenzylidene)-N-methylhydrazine carbothioamide (5NS)

Scheme 3
scheme 3

Synthesis of (Z)-2-(4-cyanobenzylidene)-N-methylhydrazinecarbothioamide (4CN)

The following is a list of the compounds' activity against each strain of bacterium in ascending order:

Bacillus cereus:

: 5NS < PDMA < 4CN < Streptomycin < Gentamycin

Staphylococus aureus:

: 4CN < PDMA < Streptomycin < 5NS < Gentamycin

Pseudomona aeruginosa:

: 4CN = 5NS < streptomycin < PDMA < Gentamycin

Klebsiella pneumonia:

: PDMA < 4CN < Streptomycin < Gentamycin = 5NS

In comparison to PDM and 4CN, the findings showed that 5NS Schiff base exhibited the strongest antibacterial activity and even very close and same activity with the standard drugs against some antibacterial strains.

Fig. 1
figure 1

Histogram representation of the antibacterial activity of the compounds and the drugs

3.3 DFT results

The EHOMO and ELUMO of the compounds (Table 2) revealed that PDMA has the highest HOMO energy value (− 5.16 eV), an indication that it has the highest ability to donate electrons, the EHOMO trend follows PDMA > 4CN > 5NS. High EHOMO of compound PDMA indicates that it possesses a large potency of electrons’ donation to the metal atom with low-lying unfilled d-orbital and another molecule. Low LUMO value is required for effective electron-withdrawal in a molecule from the orbitals of another molecule or biological cell. 5NS showed the highest stabilized LUMO (− 2.47 eV), showing that it has the highest capacity to receive electrons. The LUMO energy follows the order PDMA > 4CN > 5NS. A direct consequence of the EHOMO and ELUMO (being negative of each other), are the ionization potential (I) and electron affinity (A) respectively [29, 35]. High HOMO value indicates low ionization potential (ease of donating electron) while low LUMO indicates high electron affinity (ease of accepting electrons). The substitution of dimethylamine in PDMA and cyanide in 4CN on the parent structure compared to electron-withdrawing nitro group in 5NS significantly lowered their ionization potentials while the nitro group in 5NS stabilized its LUMO orbitals and is responsible for the electron withdrawing potential.

The global hardness (η) and the energy gap (ΔEgap) of the compounds are in the same order as they are directly related [29, 35]. Compounds with low ΔEgap and η are very reactive and unstable. 4CN has the lowest band gap (3.47 eV), followed by 5NS (3.60 eV) and PDMA (4.06 eV), in the same manner with their hardness values 4CN (1.735 eV), followed by 5NS (1.80 eV) and PDMA (2.03 eV). The chemical reactivity, as deduced from the chemical softness (δ) will increase in the order: 4CN (0.58 eV−1) > 5NS (0.56 eV−1) > PDMA (0.49 eV−1). The values of ΔEgap, η and δ here are similar with those in literature for materials used as corrosion inhibitors or as potential drug candidates [4243]. The direction of flow of electron between the metal surface and the inhibitor is specified by the electronegativity (χ) untill a balance in chemical potential is achieved while global electrophilicity (ω) determines energy stabilization between it and either the metal surface or a biological target. The electronegativity follows the order: 5NS (4.27 eV) > 4CN (4.14 eV) > PDMA (3.13 eV), the electrophilicity follows the same order: 5NS (5.06 eV) > 4CN (4.97 eV) > PDMA (2.41 eV). This shows that 5NS is the most electrophilic and more reactive than 4CN and PDMA. 5NS, among others, will be the most promising drug candidate [43]. On the adsorption of the molecules on the surface of the metal, most importantly iron (with electronegativity value of 7 eV), the higher electronegativity type receives electrons from the type with lower electronegativity value. The molecules have lesser electronegativities (χ = 3.13–4.27 eV) than iron’s, suggesting that they have capacity to transfer electron to the surface of the metal.

Table 2 Electronic properties and reactivity descriptors of the compounds

3.4 Mulliken charge distribution in conjunction with Fukui functions

Compounds’ potential reactive site can be inferred from the Mulliken charge distribution on those compounds. Tables 34, and 5 display a few charges of Mulliken that were computed for the compounds’ anionic, cationic, and neutral categories. Atoms with ∆fk > 0 are nucleophiles whereas those with ∆fk < 0 are electrophiles. Considering Table 3, the C8 on PDMA has the highest fk+ (0.045) with ∆fk (0.071) as the positive value, showing the nucleophilic attack’s preferred position or region. The C12 atom has the maximum value of fk-, which is attained at a value of (0.03), and it prefers to attack other molecules there by electrophilically (at a value of ∆fk (− 0.012)). From Table 4, the C5 atom of 5NS has the highest (0.019) and ∆fk (0.015) positive value showing the nucleophilic attack’s preferred location. The C9 atom revealed the maximum value of fk with value (0.03) and the ∆fk (− 0.013) as negative value being its electrophilic attack’s preferred site. Considering Table 5, the C8 atom of 4CN showed the maximum fk+ (0.021) and ∆fk (0.016) positive value, establishing the nucleophilic attack’s preferred site. The highest value of is obtained at C15 atom with value (0.033) has the maximum value of fk and ∆fk (− 0.016) negative value, insinuating to be its electrophilic attack’s preferred site.

Table 3 Charges of Mulliken and Fukui indices of PDMA
Table 4 Mulliken charges and Fukui indices of 5NS
Table 5 Mulliken charges and Fukui indices of 4CN

3.5 HOMO, LUMO and electrostatic potential maps

The optimized structure and reactive site maps of the molecules are displayed in Figs. 2, 3, 4, 5, 6, and 7. The HOMO of PDMA spreads across the benzylidene)-N-methylhydrazine and the sulphur atom, leaving out the methyl groups on the dimethylamino part and the amide group (Fig. 2) while its LUMO map also spread across the same area, including the nitrogen atom on the amide. The electrostatic potential map (EPM) reveals atoms that are electron rich or deficient. The EPM of PDMA (Fig. 3) indicates that the hydrazine nitrogen and sulphur atoms are the sites for electrophilic attack (red, orange) while the dimethylamino, benzylidene hydrogen atoms and amide hydrogen atoms are sites for nucleophilic attack (blue, green). The HOMO of 5NS spreads across the entire N-methylhydrazinecarbothioamide region starting from the imine group, leaving out the methyl groups on the amide group (Fig. 4) while its LUMO map spreads across the entire 2-hydroxy-5-nitrobenzylidene region, including the imime carbon and nitrogen. The EPM of 5NS (Fig. 5) indicates that the hydrazine nitro oxygen atoms, hydroxyl oxygen and sulphur atom are the sites for electrophilic attack (red, orange) while the benzylidene carbon and hydrogen atoms, imine goup, amide atoms (except the sulphur atom) are sites for nucleophilic attack (blue, green). The HOMO of 4CN is focused on the hydrazinecarbothio area, with the sulphur atom being the most prominent (Fig. 6) while its LUMO map spreads across the same region as the HOMO, adding the entire 4-cyanobenzylidene part. The EPM of 4CN (Fig. 7) indicates that the cyano nitrogen and sulphur atom are the major sites for electrophilic attack (red, orange) while the other parts of the molecule are sites for nucleophilic attack (blue, green).

Fig. 2
figure 2

Optimized molecule HOMO LUMO of PDMA

Fig. 3
figure 3

Electrostatic potential map of PDMA

Fig. 4
figure 4

Optimized molecule HOMO LUMO of 5NS

Fig. 5
figure 5

Electrostatic potential map of 5NS

Fig. 6
figure 6

Optimized molecule HOMO LUMO of 4CN

3.6 Monte Carlo simulation

Table 6 Adsorption parameters of the adsorbed molecules on Fe(110) [all energies are in kcal/mol]

The total energy of the iron-inhibitor (ETOT), energy of adsorption (EAds), energy of rigid adsorption (ERigid), and energy of deformation (EDef) of the Fe(110)-thiosemicarbazone-benzaldehyde complexes are provided in Table 6 based on the findings of the adsorption locator. Complexes’ stability is correlated with their total energy (ETOT). The total energy takes the order: Fe(110)-5NS < Fe(110)-4CN < Fe(110)-PDMA, indicating that 5NS is the most thermodynamically stable of all the molecules on the surface of Fe(110). This further buttressed the DFT results. In addition, significant corrosion inhibitor adsorption on the surface of the metal has been linked to low EAds, the order of the EAds is Fe(110)-5NS < Fe(110)-4CN < Fe(110)-PDMA.

Figures 8, 9 and 10 reveal the side and top captions of the absorbed molecules on Fe(110) surface in aqueous solution. It’s interesting to note that all of the inhibitors display a roughly side-by-side configuration to the iron plane in the MC simulation pictures, sufficient surface coverage, and significant water molecule displacement. The parallel arrangement of the inhibitors on the surface of the iron raises the possibility that the molecules could engage in reverse donation to the low-lying d-orbitals of the Fe(110), interact with the metal surface via covalent and non-bonded interactions, and isolate the iron from the corrosive environment. Hence, they could be used as corrosion inhibitors, subject to gravimetric and electrochemical experiments conformation [293544].

Fig. 7
figure 7

Electrostatic potential map of 4CN

Fig. 8
figure 8

Simulation of adsorption (side view and top view) of PDMA on Fe(110) surface

Fig. 9
figure 9

Simulation of adsorption (side view and top view) of 5NS on Fe(110) surface

3.7 Molecular docking analysis

The docking scores of the molecules and standard drugs (streptomycin and gentamycin) are recorded on Table 7. For the PBP-2 transpeptidase receptor, 6VBC for B. cereus, PDMA has a binding affinity of − 4.629 kcal/mol with interaction between it and the amino acid residues of the receptor at LYS361 from the hydrogen atoms on the hydrazine and amide groups via hydrogen bonding (Fig. 11), 5NS has a docking score of -4.810 kcal/mol and interacted with the amino acid residues at LYS361 via the hydrogen atoms on the hydrazine and amide groups (hydrogen bonding), SER545 via the nitro oxygen (hydrogen bonding) and LYS313 from its hydroxyl oxygen via salt bridge (Fig. 12). 4CN has a docking score of − 4.243 kcal/mol with interactions at LYS361 through its cyano nitrogen via hydrogen bonding (Fig. 13). Streptomycin has a docking score with the 6VBC (− 5.904 kcal/mol) while interacting through its oxygen atoms with ASN261, TYR422, TYR543, THR500, ASN364 via hydrogen bonding and its nitrogen atoms with TYR422, SER545, THR500 and THR347, also via hydrogen bonding (Fig. 14). Gentamycin has a docking score of -3.996 kcal/mol and interacted with the amino acid residues of the receptor through its hydroxyl groups with THR343, GLN345 and TYR422 via hydrogen bonding while its nitrogen atoms interacted with THR343, THR500, SER545, also via hydrogen bonding (Fig. 15).

With the PBP-2 A receptor, 1VQQ for S. aereus, PDMA has a binding affinity of − 5.115 kcal/mol with interaction between it and the amino acid residues of the receptor at GLN292 from the hydrogen atoms on the hydrazine and amide groups via hydrogen bonding (Fig. 16), 5NS has a docking score of − 5.183 kcal/mol and interacted with the amino acid residues at GLU239 via the hydrogen atoms on the hydrazine and amide groups (hydrogen bonding), ARG241 via the nitro oxygen (hydrogen bonding) and ARG151 from its hydroxyl oxygen via hydrogen bonding (Fig. 17). 4CN has a docking score of − 5.063 kcal/mol with interactions at GLN292 through its amide nitrogen via hydrogen bonding and with TYR272 via its phenyl ring due to pi-pi stacking (Fig. 18). Streptomycin has a docking score with the 6VBC (− 5.474 kcal/mol) while interacting through its carbonyl and hydroxyl oxygen atoms with GLU239, SER240 and ARG241 via hydrogen bonding and its nitrogen atoms with ASP275 and GLU170 via hydrogen bonding and salt bridge (Fig. 19). Gentamycin has a docking score of − 5.451 kcal/mol and interacted with the amino acid residues of the receptor through its oxygen atoms with ASP295, SER149, LYS148 and GLU239 via hydrogen bonding while its nitrogen atoms interacted with HIS293 and ASP275 and also via hydrogen bonding and salt bridge (Fig. 20).

With the transcriptional regulator MvfR, 4JVI for Pseudomonas spp, PDMA has a binding affinity of -6.464 kcal/mol with interaction between it and the amino acid residues of the receptor at ARG209 from the hydrogen atoms on the hydrazine and amide groups via hydrogen bonding (Fig. 21), 5NS has a docking score of -5.895 kcal/mol and interacted with the amino acid residues at ARG209, also from the hydrogen atoms on the hydrazine and amide groups via hydrogen bonding (Fig. 22). 4CN has a docking score of -6.382 kcal/mol with interactions at ARG209 through its amide nitrogen via hydrogen bonding (Fig. 23). Streptomycin has a docking score of -5.229 kcal/mol while interacting through its hydroxyl oxygen atoms with TYR258, ASN206 and ILE186 via hydrogen bonding and its nitrogen atoms with ILE186, ARG209, LEU207 and GLU151 via hydrogen bonding (Fig. 24). Gentamycin has a docking score of -7.069 kcal/mol and interacted with the amino acid residues of the receptor through its oxygen atoms with ASP264 and TYR258 via hydrogen bonding while its nitrogen atoms interacted with LEU207, ARG209 and GLU151 via hydrogen bonding and salt bridge (Fig. 25).

For the beta lactamase receptor, 4XUZ used for Klebsiella spp, PDMA has a binding affinity of − 5.028 kcal/mol with interaction between it and the amino acid residues of the receptor at GLY150 and ARG19 from the sulphur atom and imine nitrogen, respectively, via hydrogen bonding (Fig. 26), 5NS has a docking score of − 4.778 kcal/mol and interacted with the amino acid residues at GLN240 via its amide nitrogen (hydrogen bonding), THR239 via its hydrazine nitrogen (hydrogen bonding), ARG19 and ALA42 via its hydroxyl oxygen due to salt bridge and hydrogen bonding respectively (Fig. 27). 4CN has a docking score of − 4.691 kcal/mol with no visible interaction (Fig. 28). Streptomycin has a docking score of − 3.988 kcal/mol while interacting through its hydroxyl oxygen atoms with GLY18 and GLY150 (hydrogen bonding) and via its nitrogen atom with GLU39 due to hydrogen bonding (Fig. 29). Gentamycin has a docking score of − 4.148 kcal/mol and interacted with the amino acid residues of the receptor through its oxygen atoms with GLU39 via hydrogen bonding while its nitrogen atoms interacted with GLU39 and GLY18 via hydrogen bonding and salt bridge (Fig. 30).

Table 7 Binding affinities of the docked molecules and standard drugs (streptomycin and gentamycin) with different bacterial receptors
Fig. 10
figure 10

Simulation of adsorption (side view and top view) of 4CN on Fe(110) surface

Fig. 11
figure 11

PDMA with 6VBC

Fig. 12
figure 12

5NS with 6VBC

Fig. 13
figure 13

4CN with 6VBC

Fig. 14
figure 14

Streptomycin with 6VBC

Fig. 15
figure 15

Gentamycin with 6VBC

Fig. 16
figure 16

PDMA with 1VQQ

Fig. 17
figure 17

5NS with 1VQQ

Fig. 18
figure 18

4CN with 1VQQ

Fig. 19
figure 19

Streptomycin with 1VQQ

Fig. 20
figure 20

Gentamycin with 1VQQ

Fig. 21
figure 21

PDMA with 4JVI

Fig. 22
figure 22

5NS with 4JVI

Fig. 23
figure 23

4CN with 4JVI

Fig. 24
figure 24

Streptomycin with 4JVI

Fig. 25
figure 25

Gentamycin with 4JVI

Fig. 26
figure 26

PDMA with 4XUZ

Fig. 27
figure 27

5NS with 4XUZ

Fig. 28
figure 28

4CN with 4XUZ

Fig. 29
figure 29

Streptomycin with 4XUZ

Fig. 30
figure 30

Gentamycin with 4XUZ

4 Conclusion

This work has presented the Schiff bases of synthesized thiosemicarbazone-benzaldehyde derivatives- PDM, 5NS and 4CN as potent antibacterial candidates/agents. The in-vitro antibacterial studies showed that 5NS and PDM were even more active than one of the standard drug streptomycin against the bacterial strains Staphylococus aureus and Pseudomona aeruginosa respectively while 5NS appeared to have the same activity with the strongest standard drug, gentamycin in the order PDMA < 4CN < Streptomycin < Gentamycin = 5NS against Klebsiella pneumonia. Additionally, the theoretical and molecular docking studies confirms the antibacterial activity of these molecules and also their ability to inhibit corrosion of metals in acidic media. The global and local reactivity descriptors revealed that these molecules can donate and at the same time accept electrons to the metals’ surface and from metals’ orbitals which suggests their potentials as corrosion inhibitors, which was also supported by their adsorption parameters on Fe(110).