resizeVertex and resizeIndex