resoved exit issue