implement multiple indices