std::abs could be more obviously correct