Pretreatment of moulding material