for loop to iterate thru all arrays