change buffer length