removed debug exit