added weighted segments