 }
 
 // return width, height and frequency info for corresponding displayID
+// TODO: eliminate the use of DisplayInfo in favor of the newer, and more informative CGDisplayModeFromJSON
 struct DisplayInfo:Hashable & Comparable & Equatable {
   static let MAX_SCALE = 10
   var width, height, scale, frequency, resolution:Int

          lhs.Height == rhs.Height && lhs.kCGDisplayPixelsHigh == rhs.kCGDisplayPixelsHigh
  }

  subscript(index:String) -> Int {
    get {
      switch index {

      filtered[prop] = []
    }
  }
  // update for new maxValue
  mutating func refresh(for prop:String, maxValue:Int, element:Int) {
    largest[prop] = maxValue
    filtered[prop] = [element]
  }
  // add record of elements for current maxValue 
  mutating func append(for prop:String, element:Int) {
    filtered[prop]!.append(element)
  }

  // invoking maxValue update & record-keeping
  mutating func loop(in modesObject:[CGDisplayModeFromJSON], range arr:[Int]) {
    for prop in propertyList {
      arr.forEach { i in switch modesObject[i][prop] {
