change contents of error type