fixed exit statement