added assertion to check for the existance of the hc