working filtered values
added smoothing
removed smoothing