implemented nested loop to cycle through parameter options and input results into array.