re-introducing $add and $mod operations