added outlier detection