implements Tag.tagging method