preallocate pyr