missing raise statements for TypeErrors