changed to barcode scanning