made error messages clearer