first fix for smoothing issue