code to change tag in tag_family