changed draw vector to use pointers