closed that while loop