trying to get the update hook to work