changing script to use the preprocessing params