simplify stateframe