finished first iteration of table generation. bad times are sure to come...