edit do-while statements