change do while to while