added end of for loop