fixed feature vectorization writing