[H-].[Na+].[C:3]([N:10]1[CH2:15][CH2:14][CH2:13][CH2:12][C@H:11]1O)([O:5][C:6]([CH3:9])([CH3:8])[CH3:7])=[O:4].I[CH3:18].CN([CH:22]=[O:23])C>>[C:3]([N:10]1[CH2:15][CH2:14][CH2:13][CH2:12][C@@H:11]1[CH2:18][O:23][CH3:22])([O:5][C:6]([CH3:9])([CH3:8])[CH3:7])=[O:4]A suspension of sodium hydride (0.13 g, 5.4 mmol) in DMF (4 mL) was cooled with ice and a solution of the intermediate alcohol of Step 2 (0.97 g, 4.5 mmol) in DMF (1 mL) was added dropwise. After stirring for 30 min at room temperature iodomethane (0.96 g, 6.8 mmol) was added and the mixture was stirred over night. The mixture was quenched with saturated NH4Cl-solution and extracted with EtOAc. The combined organic extracts were washed with brine, dried over MgSO4 and concentrated under reduced pressure to leave the crude (R)—N-Boc-2-methoxymethylpiperidine (0.88 g, 85%).