refine the program and modify the requirement of program exit.