index of 2 states