changes parameters in preprocess functions to match api documentation