change error messages to a short and efficiant code