Reaction SMILES: [CH3:1][C:2]1[CH:3]=[C:4]([CH2:8][NH:9][CH:10]2[CH2:15][CH2:14][N:13]([C:16]([O:18][C:19]([CH3:22])([CH3:21])[CH3:20])=[O:17])[CH2:12][CH2:11]2)[CH:5]=[CH:6][CH:7]=1.C(N(C(C)C)CC)(C)C.[CH3:32][O:33][C:34]1[CH:39]=[CH:38][C:37]([CH2:40][C:41](Cl)=[O:42])=[CH:36][CH:35]=1.O>ClCCl>[CH3:1][C:2]1[CH:3]=[C:4]([CH2:8][N:9]([CH:10]2[CH2:15][CH2:14][N:13]([C:16]([O:18][C:19]([CH3:22])([CH3:21])[CH3:20])=[O:17])[CH2:12][CH2:11]2)[C:41](=[O:42])[CH2:40][C:37]2[CH:38]=[CH:39][C:34]([O:33][CH3:32])=[CH:35][CH:36]=2)[CH:5]=[CH:6][CH:7]=1
Reactant: Cc1cccc(CNC2CCN(C(=O)OC(C)(C)C)CC2)c1
Reactant: COc1ccc(CC(=O)Cl)cc1
Solvent: CCN(C(C)C)C(C)C
Solvent: O
Solvent: ClCCl
Product: COc1ccc(CC(=O)N(Cc2cccc(C)c2)C2CCN(C(=O)OC(C)(C)C)CC2)cc1
Temperature: 25 °C
Reaction time: 18 h

Procedure:
To a solution of commercially available tert-butyl 4-oxo-1-piperidine carboxylate (400 mg, 2 mmol) in methanol (1 ml) and 3-methylbenzylamine (0.125 ml, 1 mmol) in methanol (1 ml) was added acetic acid in methanol (1 M, 1.34 ml) followed by NaCNBH3 in methanol (0.3 M, 4.4 ml). The resulting solution was stirred at room temperature. After 24 h, water (2 ml) was added, and the mixture was stirred for 1 h, before it was concentrated. The resulting oil was redissolved in diethyl ether (20 ml), extracted with HCl (0.1 N, 1×15 ml). The aqueous layer was washed with diethyl ether (10 ml) and treated with 0.2 N NaOH until basic (pH>8), before extracted with dichloromethane (20 ml). The organic layer was dried (Na2SO4), filtered, and concentrated to give tert-butyl 4-((3-methylphenyl)methyl)amino-piperidine carboxylate. Yield: 136 mg. To a solution of tert-butyl 4-((3-methylphenyl)methyl)amino-piperidine carboxylate (50 mg, 0.16 mmol) in dichloromethane (6 ml) was added diisopropylethylamine (0.070 ml, 0.4 mmol) followed by 4-methoxyphenylacetyl chloride (0.055 ml, 0.35 mmol). The reaction mixture was stirred at room temperature. After 18 h, water (2 ml) was added. The mixture was stirred for another 2 h. The mixture was sequentially washed with HCl (0.2 N, 2×15 ml), NaOH (0.2 N, 2×15 ml), and water (10 ml), dried (Na2SO4), filtered and concentrated to give N-((3-methylphenyl)methyl)-N-(1-(tert-butyloxycarbonyl)piperidin-4-yl)-4-methoxyphenylacetamide. The crude product was used without any further purification. N-((3-Methylphenyl)methyl)-N-(1-(tert-butyloxycarbonyl)piperidin-4-yl)-4-methoxyphenylacetamide was dissolved in diethyl ether (2 ml) and HCl (1 ml, 4 M in dioxane) was added. The reaction mixture was stirred at room temperature. After 2.5 h, NaOH (1 ml, 6 N) was added followed by dichloromethane (10 ml). The mixture was extracted with water (2×15 ml), dried (Na2SO4), filtered to give a clear solution. The solution was added on to a column carrying strongly acidic cation exchange resin (0.3 mmol/g resin), which was washed with methanol (3×6 ml), and eluted with 10% NH3 in methanol, and concentrated to give the title compound. Yield: 48 mg; 13C-NMR (CD3OD, rotamers): δ 20.4, 26.8, 28.3, 40.2, 43.9, 44.1, 44.5, 51.8, 54.2, 54.57, 54.61, 114.0, 114.1, 123.2, 123.7, 126.7, 127.0, 127.1, 127.3, 128.0, 128.1, 128.7, 129.8, 129.9, 137.9, 138.6, 138.9, 159.0, 159.1, 173.1, 173.7.