while should be on the same line