table generation works