added new math functions