added curStateName