tweaked the table creation