add exit method