moved table creation to tablebuilder