added other do while loop