minor tweaks for data smoothing