fixed outliers function