updated YFDiagnostic assert method