math.h include was missing