using a double for loop for array combo