barcode function is added.