serializing vectorizer