added some awesome smoothing on the outliers for the least square.