removed math.h dependencies