updates to preprocess functions