checking for loops, iteration 8, change lteq to lt