working on multiple indices