small typo in the for loop