added missing abs to utils.cpp