working on new connectors algorithm