implement for scalar arithmetic, mods entry