create name_comp method