edit to data pre-processing