put ideslave_counter into IState