better tag construction