use TypeError and ValueError