Added Method indexSet to utils