update method definition for on_msg_complete