add path smoothing sample