for loop check