index prob solve