adding changes to index