clean index file