correct tokenTag function