don't enter an infinite loop