add structure for smoothing