renamed type to component_type