change index buffer query method