made it so circularbuffers can expand to within a certain maximum amount