small loop condition adjustment