test vectorization