correction to table creation