simplify and silence loop check