update the exit