cmath no longer needed