iterate over array of people