typo in for loop