add segment length normalization