renaming component attribute as component_name