reworked tables to include ctas