change tag.name to tag