modigying signal2.c