module for custom math functions