adding error messages