add exit methord