fix up the tables