refactor q-ty discount