added exit statement