subsequence weighting