copgHs function

Internal Function