removed clunk_min/max, use <algorithm> include for std::min/max