add comments for pathsmoothing