changed to barcode api