add math functions.