add indices demo