rename type to tag