optimizing preproc