typo in loopvariable name