added discount variable