saving updates to index