finish vectorization