Clean preprocess code