use getComponentType