update size index buf