modify diagnose