statistics and diagnostics