algebraic operations without function call