modified discount
added another fix for discount