implementation of qr code scanner