cells changed from std::size_t to unsigned int