better diagnostic message