barcode code copied from wildbeast