             return
         }
 
-        createBeaconRegion()
         locationManager?.startMonitoringForRegion(beaconRegion)
 
         NSLog("Monitoring turned on for region: \(beaconRegion)")

    }

    var locationManager: CLLocationManager?
    var beaconRegion: CLBeaconRegion?
    var peripheralManager: CBPeripheralManager?
    var detectedBeacons: Array<CLBeacon> = []
    var monitoringSwitch, advertisingSwitch, rangingSwitch: UISwitch?

            return
        }

        locationManager?.startRangingBeaconsInRegion(beaconRegion)

        NSLog("Ranging turned on for region: \(beaconRegion)")
