made aborting the program work