add function using unbox vector