working on the error messages