provided idx on getCurrentState #23