removed parentheses from index for loop