print added till dowhileloop