added fabs() and abs()