revert to size_t on nodes