removed exit function