small change: all the tables are now in an arrylist