pre processing