commented out the system.exit(0) at the start