add hook for instance