Pretreatment of the material to be coated