after review, I moved country_code function to utils