removed debug exit statement