DMF for polymer modification