changed preprocess