cleaning index file