duplicate file for index