added qr-encdoe