add update hooks to patch method function