removed comments for while loop