added working hc def