[C:1]1([CH:7]([C:13]2[CH:18]=[CH:17][CH:16]=[CH:15][CH:14]=2)[S:8][CH2:9][C:10](O)=[O:11])[CH:6]=[CH:5][CH:4]=[CH:3][CH:2]=1.S(Cl)([Cl:21])=O>>[C:1]1([CH:7]([C:13]2[CH:18]=[CH:17][CH:16]=[CH:15][CH:14]=2)[S:8][CH2:9][C:10]([Cl:21])=[O:11])[CH:6]=[CH:5][CH:4]=[CH:3][CH:2]=12-[(Diphenylmethyl)thio]acetic acid (III), on reaction with thionyl chloride yielded the corresponding 2-[(diphenylmethyl)thio]acetylchloride (IV), which on reaction with ammonia produced 2-[(diphenylmethyl)thio]acetamide (I) which on oxidation with hydrogen peroxide resulted in modafinil (II).