fixed silly for() loop typo