for mg err