remove redundancy in an error message