updating country_codes and country coding method