```    return hr;``` is missing here I think...