renamed to update hook