docstring for preprocess