adding allCountries function