added exit(0)