add hook sample