reformat data tables