new method added to set the stateOfConnections list