change type

Changed unsigned int to size_t for compatibility