change size for buffer