set_connections() method