rename file with index