swap map_string_string to map_string_int (for efficiency)