added smoothing, works real nice