getConnections method