removed unnecessary abs()