C([C:4]1[CH:5]=[C:6]2[C:11](=[O:12])[NH:10][C:8](=[O:9])[C:7]2=[CH:13][CH:14]=1)(O)=O.[OH2:15].[CH2:16]=O>CN(C)C=O>[OH:15][CH2:16][C:5]1[CH:4]=[CH:14][CH:13]=[C:7]2[C:8]([NH:10][C:11](=[O:12])[C:6]=12)=[O:9]The 4-carboxyphthalimide (0.5 mol) was dissolved in dimethylformamide (200 ml) and H2O (600 ml) and treated with 37% aqueous formaldehyde (100 ml) and the mixture was heated on a steam bath until the solution became homogenous. The reaction was placed in an ice bath and cooled. A white solid crystallized and was collected and washed with cold water. The solid was dissolved in THF and dried with MgSO4 and concentrated to yield 96% of hydroxymethylphthalimide product.