Pre-treatment of the material to be coated