Smoothing out the crooked parts