extra infinite loop check