[Cl:1][C:2]1[CH:7]=[CH:6][CH:5]=[CH:4][C:3]=1[C:8]1[C:14]2[CH:15]=[C:16]([C:18]([OH:20])=[O:19])[S:17][C:13]=2[N:12]2[C:21]([CH3:24])=[N:22][N:23]=[C:11]2[CH2:10][N:9]=1.C(=O)([O-])[O-].[K+].[K+].[CH2:31](I)[CH3:32]>CN(C)C=O>[Cl:1][C:2]1[CH:7]=[CH:6][CH:5]=[CH:4][C:3]=1[C:8]1[C:14]2[CH:15]=[C:16]([C:18]([O:20][CH2:31][CH3:32])=[O:19])[S:17][C:13]=2[N:12]2[C:21]([CH3:24])=[N:22][N:23]=[C:11]2[CH2:10][N:9]=1The obtained (4-(2-chlorophenyl)-9-methyl-6H-thieno[3,2-f] [1,2,4]triazolo[4,3-a] [1,4]diazepin-2-yl)carboxylic acid was dissolved in dimethylformamide. Potassium carbonate and ethyl iodide were added, and the mixture was stirred overnight to give ethyl (4-(2-chlorophenyl)-9-methyl-6H-thieno[3,2-f] [1,2,4]triazolo[4,3-a] [1,4]diazepin-2-yl)carboxylate.