added filtering_rarity_threshold variable