added rarity type method