discount fucntion set