made table_type non static