remove mdgs from main