added smoothed heaviside