adding signal handle function prototype