Pretreatment of the substrate