revise index file