tryint to fix program exit