correct adding to the list of stateOfConnections the state of connections