writing preprocessing_crop_fit