[CH3:1][C:2]1[CH:7]=[CH:6][C:5]([S:8]([N:11]2[CH2:16][CH2:15][C:14]3[S:17][C:18]([C:20]([O:22]CC)=[O:21])=[CH:19][C:13]=3[CH2:12]2)(=[O:10])=[O:9])=[CH:4][CH:3]=1.[OH-].[Na+]>C(O)C>[CH3:1][C:2]1[CH:7]=[CH:6][C:5]([S:8]([N:11]2[CH2:16][CH2:15][C:14]3[S:17][C:18]([C:20]([OH:22])=[O:21])=[CH:19][C:13]=3[CH2:12]2)(=[O:9])=[O:10])=[CH:4][CH:3]=1A solution of ethyl 5-[(4-methylphenyl)sulfonyl]-4,5,6,7-tetrahydrothieno[3,2-c]pyridine-2-carboxylate (1 eq) obtained from step B1 and NaOH (1.5 eq.) in ethanol was refluxed for 2 h. Reaction mixture was concentrated under reduced pressure and neutralized to get 5-[(4-methylphenyl)sulfonyl]-4,5,6,7-tetrahydrothieno[3,2-c]pyridine-2-carboxylic acid.