add triangular smoothing