changing circuit strucure to allow multiple connections from 1 pin