improved outlier handling