final table generation! muhehe