add anomaly detection