changes parameter's' in preprocess functions to match api documentation