         if let thresholds = self.thresholds {
             if (value > thresholds.bg_high) {
                 color = .Alert
-            } else if (value > thresholds.bg_target_top) {
+            } else if (value > thresholds.bg_target_top && value < thresholds.bg_high) {
                 color =  .Warning
             } else if (value >= thresholds.bg_target_bottom && value <= thresholds.bg_target_top) {
                 color = .Positive

}


enum DesiredColorState {
    case Alert, Warning, Positive, Neutral
}

extension ServerConfiguration {
    
    func boundedColorForGlucoseValue(value: Int) -> DesiredColorState {


enum AlarmTypes: String {
    case predict = "predict"
    case simple = "simple"
}

struct Defaults: Printable {
