limit count to buffer size, make any and open to empty and full