rewrote the QMC chapter