update on diagnosis.m