preallocating nodes