editing and adding to index