created a for loop