[P:1]([O:6][CH3:7])([O:4][CH3:5])[O:2]C.BrC[CH2:10][N:11]1[C:15](=[O:16])[C:14]2=[CH:17][CH:18]=[CH:19][CH:20]=[C:13]2[C:12]1=[O:21].P(OCC)(OCC)OCC>>[C:12]1(=[O:21])[N:11]([CH2:10][P:1](=[O:2])([O:6][CH3:7])[O:4][CH3:5])[C:15](=[O:16])[C:14]2=[CH:17][CH:18]=[CH:19][CH:20]=[C:13]12Reaction of N-bromoethylphthalmide with trimethyl phosphite as described in Example 18 for N-(2-bromoethyl)phthalimide and triethyl phosphite gives dimethyl phthalimidomethylphosphonate.