tried do while and added break

this did not perform the way i wanted it