Modify function about extraction unique tags