refactor mapping QrCode