typo in EDmarg function name