diagnostics by algorithm