[CH3:1][C:2]1[S:6][C:5]2[CH:7]=[CH:8][C:9]([C:11]([OH:13])=[O:12])=[CH:10][C:4]=2[CH:3]=1.Cl.[CH3:15]O>>[CH3:15][O:12][C:11]([C:9]1[CH:8]=[CH:7][C:5]2[S:6][C:2]([CH3:1])=[CH:3][C:4]=2[CH:10]=1)=[O:13]A solution of 2-methylbenzo[b]thiophene-5-carboxylic acid (17.4 g) in methanol (250 ml) was saturated with hydrogen chloride and then heated under reflux for 30 minutes. The solid which crystallised out on cooling was filtered off and dried to give 2-methylbenzo[b]thiophene-5-carboxylic acid methyl ester (16.7 g), m.p. 97°-98°.