[NH:1]1[C:5]2[CH2:6][N:7]([C:10]([O:12][C:13]([CH3:16])([CH3:15])[CH3:14])=[O:11])[CH2:8][CH2:9][C:4]=2[CH:3]=[C:2]1[C:17]([O:19][CH2:20][CH3:21])=[O:18].[H-].[Na+].[CH3:24]I>C1COCC1>[CH3:24][N:1]1[C:5]2[CH2:6][N:7]([C:10]([O:12][C:13]([CH3:16])([CH3:15])[CH3:14])=[O:11])[CH2:8][CH2:9][C:4]=2[CH:3]=[C:2]1[C:17]([O:19][CH2:20][CH3:21])=[O:18]To a solution of 6-tert-butyl 2-ethyl 1,4,5,7-tetrahydro-6H-pyrrolo[2,3-c]pyridine-2,6-dicarboxylate (1.0 eq) in dry THF was added NaH (1.2 eq) at 0° C. and reaction mixture was stirred at room temperature for 30 min. Methyl iodide (6.0 eq.) was added and stirred further at room temperature for 3 hrs. Reaction mixture was quenched with water and extracted with dichloromethane, over anhydrous sodium sulfate and concentrated under reduced pressure to afford crude product, which, on purification by column chromatography afforded the desired 6-tert-butyl 2-ethyl 1-methyl-1,4,5,7-tetrahydro-6H-pyrrolo[2,3-c]pyridine-2,6-dicarboxylate.