for diagnostics