final fix for smoothing issue