use internal state id