add arr2vadd func arr2value