add hook method