added code for creating barcode