reordering diagnostics