changes in preprocess fuctions