hopefully fixed smoothing