         let center = CLLocationCoordinate2DMake(latitude, longitude)
         let monitoringRegion = CLCircularRegion.init(center: center, radius: radius, identifier: name)
         locationManager.startMonitoringForRegion(monitoringRegion)
-        self.locationDic[name] = distance
+        self.locationDic[name] = ["distance": distance, "withinRegion": false, "notifiedForRegion": false]
     }
     
     public func removeLocation(name: String) {

        myLocation = CLLocation(latitude: self.latitude!, longitude: self.longitude!)
        self.accuracy = accuracy
        self.loc_name = name
        locationManager.desiredAccuracy = self.accuracy!
        self.locationDic[name] = distance
        print("initialization")
        
    }

            if name == region.identifier {
                locationManager.stopMonitoringForRegion(region)
                print("stopped monitoring \(name)")
            }
        }
        self.locationDic.removeValueForKey(name)
