refactoring of the tag_link_list helper