extend buffer length