before smoothing