copy changes to index