upadate add hook