added weights for each segmentation