remove diagnostic messages