added voucher generation code