manage the tags in a set to avoid duplicate entries