minor changes in the preprocessing script