remove repeated ner buffer allocation when sampling z's