preprocess standard datasets