add table_foreach