function EqMod was added7