simplifiing the exit process