for loop generating table is being silly...