fixed the tables