changed example signalhandler