mage modifications to margin