add exit statement