[CH3:1][C:2]1[C:10]2[C:5](=[CH:6][CH:7]=[CH:8][CH:9]=2)[NH:4][C:3]=1[C:11]([O:13][CH2:14]C)=[O:12].[Mg].ClCCl.[NH4+].[Cl-]>CO>[CH3:1][CH:2]1[C:10]2[C:5](=[CH:6][CH:7]=[CH:8][CH:9]=2)[NH:4][CH:3]1[C:11]([O:13][CH3:14])=[O:12]Ethyl 3-methylindole-2-carboxylate (4.06 g, 20 mmol) was dissolved in methanol (50 ml) and magnesium shavings (2.431 g, 100 mmol) were then added with stirring, at room temperature under a nitrogen atmosphere. After the reaction started, a water bath was used to maintain the reaction temperature between 15-20° C. After the end of the reaction, dichloromethane (200 ml) was added to the mixture, followed by NH4Cl solution (200 ml). The organic phase was separated out and the aqueous phase was extracted with dichloromethane (3×50 ml). The combined organic phases were dried over magnesium sulphate and the solvent was removed to give a brown oil.