fixed grammar on while loop