fixed stupidity

fixed BOTH for loops