moved vector draw function