make countries-in into a function