getting the hook right