cleanup of index