add automatic vector resizing