added generated MAGE