update hook sample