Cl.[CH3:2][O:3][C:4](=[O:13])[C:5]1[CH:10]=[CH:9][C:8]([NH:11]N)=[CH:7][CH:6]=1.Cl.[CH3:15][N:16]1[CH2:21][CH2:20][C:19](=O)[CH2:18][CH2:17]1.Cl>>[CH3:15][N:16]1[CH2:21][CH2:20][C:19]2[NH:11][C:8]3[CH:7]=[CH:6][C:5]([C:4]([O:3][CH3:2])=[O:13])=[CH:10][C:9]=3[C:18]=2[CH2:17]1Methyl-4-hydrazinylbenzoate hydrochloride (1 equiv.) and 1-methylpiperidin-4-one HCl (0.76-1.4 equiv.) are taken aqueous HCl and heated at 100° C. overnight (the product was detected by LCMS). The reaction mixture is concentrated and refluxed (90° C.) in methanolic HCl overnight (product was detected by LCMS and TLC). The reaction mixture is concentrated and basified with aqueous NaHCO3 solution and extracted with EtOAc. The crude product is crystallized in DCM and ether and hexane.