adding max_tables