fixes to outlier detection