refactoring for shorthand math