switched to table from map of maps