misnamed preprocess function