added cmath header