vector writing