removing dup file and index reference