add for loop check