change to TypeError with more descriptive message