update exit method