refactored arithm binary operations in order to make them more scalable