added Path smoothing