changed type to component_type in params