reformatting of dataset