change rand index in part 1