preallocate ymtx