commenting out one line, fixed for loop