added tagging functional