[S:1]1[C:9]2[CH2:8][CH2:7][NH:6][CH2:5][C:4]=2[CH:3]=[C:2]1[C:10]([OH:12])=[O:11].S(Cl)(Cl)=O.[CH3:17]O>>[S:1]1[C:9]2[CH2:8][CH2:7][NH:6][CH2:5][C:4]=2[CH:3]=[C:2]1[C:10]([O:12][CH3:17])=[O:11]To a solution of 4,5,6,7-tetrahydrothieno[3,2-c]pyridine-2-carboxylic acid (1 eq) obtained in step IV in methanol was added thionyl chloride (1.5 eq) at 0° C., and the reaction was refluxed for 3.0 h Reaction mixture was concentrated and neutralized to afforded the methyl 4,5,6,7-tetrahydrothieno[3,2-c]pyridine-2-carboxylate.