[Br:1][C:2]1[C:15]([O:16][CH3:17])=[CH:14][C:5]2[S:6][CH:7]=[C:8]([C:9]([O:11]CC)=[O:10])[C:4]=2[CH:3]=1.[OH-].[Na+]>C(O)C.O>[Br:1][C:2]1[C:15]([O:16][CH3:17])=[CH:14][C:5]2[S:6][CH:7]=[C:8]([C:9]([OH:11])=[O:10])[C:4]=2[CH:3]=1Ethyl 5-bromo-6-methoxybenzo[b]thiophene-3-carboxylate (D4) (0.42 g, 0.0013 mole) in ethanol (20 ml) and water (5 ml) was treated with sodium hydroxide powder (0.14 g, 0.0035 mole). The reaction mixture was heated under reflux for 2 hours and stirred at ambient temperature for 16 hours. The solvent was removed in vacuo and the residue diluted with water (25 ml), acidified with 5N hydrochloric acid, extracted into ethyl acetate, dried (Na2SO4) and evaporated in vacuo to afford the title compound (0.36 g, 93%) as a beige solid.