looping like a do while works