remove nargout check from preallocate