improved lines smoothing
merge