rewrite tags
restructure tags.