inline build
remove tagname duplication