stupid stupid for loop typo fixed