NF: smoothing script