edit index file