working on smoothing paths.