modify index file