a first implementation of smooth_data()
NAMESPACE update