changed the way to handle Hp Hc