finished added all stats collecion except the error detection stats