saving v as mat