[CH:1]1[C:14]2[N:13]([CH2:15][CH2:16][O:17][CH2:18][CH2:19]O)[C:12]3[C:7](=[CH:8][CH:9]=[CH:10][CH:11]=3)[S:6][C:5]=2[CH:4]=[CH:3][CH:2]=1.CS(Cl)(=O)=O.C(=O)([O-])[O-].[K+].[K+].C(C(C(C(O)=O)O)O)(O)=O.[NH:42]1[CH2:47][CH2:46][CH2:45][C@@H:44]([C:48]([O:50][CH2:51][CH3:52])=[O:49])[CH2:43]1.C(O)(=O)C(C(C(O)=O)O)O>C1(C)C=CC=CC=1.C(OCC)(=O)C.O.C(N(CC)CC)C>[CH2:51]([O:50][C:48]([C@@H:44]1[CH2:45][CH2:46][CH2:47][N:42]([CH2:19][CH2:18][O:17][CH2:16][CH2:15][N:13]2[C:12]3[CH:11]=[CH:10][CH:9]=[CH:8][C:7]=3[S:6][C:5]3[C:14]2=[CH:1][CH:2]=[CH:3][CH:4]=3)[CH2:43]1)=[O:49])[CH3:52]A well-stirred mixture of the above alcohol (1.5 g, 5.2 mmol), triethylamine (1.8 ml) and toluene (20 ml) placed under an atmosphere of nitrogen was cooled on an ice-bath. A solution of methanesulfonyl chloride (1.5 g, 10.4 mmol) in toluene (5 ml) was added within 15 minutes. Stirring was continued for 45 minutes on an ice-bath and then for 30 minutes at room temperature. Water (15 ml) was added and the mixture was stirred at room temperature for 15 minutes. The phases were separated and the aqueous phase was extracted with toluene (20 ml). The combined organic extracts were washed with a 5% sodium bicarbonate solution, brine and then dried over sodium sulphate. The solvent was evaporated in vacuo to give an oil, which was dissolved in toluene (30 ml). To this solution was added potassium carbonate (2.5 g, 18.3 mmol) and ethyl (R)-3-piperidinecarboxylate tartrate (3.2 g, 10.4 mmol) and the suspension was heated at reflux temperature for 3 days. The cooled reaction mixture was filtered and the solid washed with a small portion of toluene. The solvent was evaporated from the filtrate in vacuo to give a residue, which was dissolved in a mixture of ethyl acetate (30 ml) and water (30 ml). A 34% aqueous solution of tartaric acid was added until pH 4. The phases were separated and the aqueous phase was extracted with ethyl acetate (15 ml). To the combined organic phases were added water (10 ml) and a 34% aqueous solution of tartaric acid (3.5 ml). The phases were separated and the organic phase was extracted with a mixture of water (10 ml) and a 34% aqueous solution of tartaric acid (2 ml). The acidic aqueous phases are combined and washed with ethyl acetate (15 ml). All the organic phases were discarded and to the acidic aqueous phase was added ethyl acetate (50 ml) and water (50 ml). A 4 N sodium hydroxide solution was added until pH 8.5 and the phases were separated. The aqueous phase was extracted with ethyl acetate (15 ml) and the combined organic phases were washed with brine and dried over sodium sulphate. The solvent was evaporated in vacuo to give 0.8 g of (R)-N-(2-(2-(10H-phenothiazin-10-yl)ethoxy)ethyl)-3-piperidinecarboxylic acid ethyl ester as an oil. TLC: rf=0.20 (SiO2 ; dichloromethane/methanol/acetic acid=20:2:1 ).