done indices generate, not tested yet