added better diagnosis message