clean up of index