make comparator circuit