added logic for edible barcodes