CS(O[CH2:6][CH2:7][C:8]1[CH:12]=[CH:11][S:10][CH:9]=1)(=O)=O.[C:13]1(=[O:23])[NH:17][C:16](=[O:18])[C:15]2=[CH:19][CH:20]=[CH:21][CH:22]=[C:14]12.[K].O>CN(C)C=O>[S:10]1[CH:11]=[CH:12][C:8]([CH2:7][CH2:6][N:17]2[C:16](=[O:18])[C:15]3=[CH:19][CH:20]=[CH:21][CH:22]=[C:14]3[C:13]2=[O:23])=[CH:9]1To a solution of the above crude 2-(3-thienyl)ethyl methanesulfonate in 400 ml of N,N-dimethylformamide, 12.8 g (69.0 mmol) of potassium phthalimide was added, followed by overnight stirring at 100° C. After cooling to room temperature, the reaction mixture was added to water with vigorous stirring. The resulting precipitate was filtered, washed with water and dried to yield the desired product.