qr update for basis gen