improve the reliability of Preprocess method