by reaction with thionylhalides