consolidated VectorBuilder to reduce code duplication