reorganize data and training files