some updates to discount codes