fixed HPGE segmentation