adding math.h to see if handles the abs overload any better