working on updating the index