reformat
add anomalies detection