check for maxNPart before growing buffer