corrected calls in math functions