added smoothing of plots