finish preprocessing and modeling