second preprocess