cleaned up debugging output, std::min -> MIN