update delegate.m