change exit condition