finished the tagging feature