Update signal.cpp