update hook for block