table generations

fixed table generation