add indices class