give a better error message