update for code review feedback: remove start out of loop, rename j to connectionNumber, rename numberCons to connectionsCount