convert country objects to arrays to save bytes