update callback method.