add code for mmi data