add mod equation