makes a tenary for a discount