some changes to qr encoding