attempt at smoothing values