created for loop to output all the variables