making changes to index