add format for next state