[CH3:1][O:2][C:3]1[CH:11]=[CH:10][CH:9]=[C:8]2[C:4]=1[CH:5]=[C:6]([C:12]([O:14][CH2:15]C)=[O:13])[NH:7]2.[Mg].ClCCl.[Cl-].[NH4+]>CO>[CH3:1][O:2][C:3]1[CH:11]=[CH:10][CH:9]=[C:8]2[C:4]=1[CH2:5][CH:6]([C:12]([O:14][CH3:15])=[O:13])[NH:7]2Ethyl 4-methoxyindole-2-carboxylate (0.95 g, 4.33 mmol) was dissolved in methanol (10 ml) and magnesium shavings (0.471 g, 19.37 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. This mixture was stirred overnight. At the end of the reaction, dichloromethane (200 ml) was added to the mixture, followed by ammonium chloride 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.