model diagnostics