reformat data files