added clarifications for TypeErrors