solved equilibrium index problem