modify indexbuffer same way as vertexbuffer