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

        let center = CLLocationCoordinate2DMake(self.latitude!, self.longitude!)
        let monitoringRegion = CLCircularRegion.init(center: center, radius: 100, identifier: self.loc_name!)
        
        locationManager.startMonitoringForRegion(monitoringRegion)
        locationManager.startUpdatingLocation()
    }
    

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