added option to exit program