put files back in index