add anomaly detection part