Hello, I am currently conducting my Bachelor on a organic synthesis. Here, I first form an acid chloride by the addition of thionyl chloride and Dimethylformamide (which together form the Vilsmeier-Haack reagent) to my starting product (4-hydroxyphenylacetic acid) at room temperature. After, I add Triethylamine (a proton scavenger) and a dimethylamine HCl salt, the latter of which should react with the acid chloride in a amidation reaction. However, upon addition of the DMA.HCl nothing seems to occur and a IR-spec analysis of the final product shows a molecule reminiscent of polyethylene terephthalate (PET). This finding makes me think that there might be a polymerization reaction going on in which the acid chloride reacts with the hydroxy group of 4-hydroxyphenylacetic acid. This would also be able to explain as to why the DMA.HCl would not react in the mixture as all the acid chlorides would have polymerized before the amidation could occur.