updating buffer size