adding smoothing scripts