implement dynamic quadmix