changed to vertex buffers