separated teams into tables on team index