heplots-internal function

Internal heplots functions