correcting data tables