added prototype for signal handler