taking the "do" after the while command