added discount as library