simpliying table_type procs