updated max_buffer