cleaned up the tables