sets up the collection from the array that is output