update to index for file