return to exit function when not good