DIAG: use newtype for DiagAlgo