[S:1]1[C:7]2[CH:8]=[CH:9][CH:10]=[CH:11][C:6]=2[CH2:5][NH:4][CH2:3][CH2:2]1.C(N(CC)CC)C.[C:19](OC(=O)C)(=[O:21])[CH3:20]>ClCCl>[S:1]1[C:7]2[CH:8]=[CH:9][CH:10]=[CH:11][C:6]=2[CH2:5][N:4]([C:19](=[O:21])[CH3:20])[CH2:3][CH2:2]1To a solution of 2,3,4,5-tetrahydro-1,4-benzothiazepine (5 g, 30.3 mmol) in dry dichloromethane (100 mL) was added triethylamine (5.06 mL, 36.3 mmol) at room temperature, followed by the addition of acetic anhydride (3.43 mL, 36.3 mmol) dropwise at 0° C. under nitrogen. The resulting solution was stirred for 1 hour whilst allowing the temperature to rise slowly to room temperature. The mixture was washed with brine (50 mL×2), dried over sodium sulfate, filtered and concentrated in vacuo to afford 6.28 g of product as yellow oil, which was used for next step without further purification.