iterated across entire array