correcting for loop