math functions are working now