modify api and barcode