Update delegate.cpp