provide a better diagnostic message