scanner/decoder work