added check if nh > 0