'fixed for loop confusion'