added local smoothing to clean up mauve alignment