smooth_function