added line/polygon smoothing