correction infinite loop