alter preprocess functions