vector replaces array