made error messages more specific