modify exit() statement