adjusted the error messages