run pre processing