refactor the TAG content