edit to pre-processing step