function countrie and array of bojets