fixed master table creation