added confidence filter for outliers