define error messages more precisely