improved the error message