add vector fcn