added variable numbers of connectors