modify some callbacks.