moving smoothing factor to constants.