logic for diag report