adding code for MMR-MD