adding running smoothing at the end
adding window effect correction for W_S