added missing connection to table()