write preprocessed data set