basic vectorization