much nicer list_indices