created method for barcode id