Update preprocess.cpp