add comparator to program and devices