unsigned int replaced by std::size_t