fixing exiting code