         } else if let smbgEvent = event as? SelfMonitoringGlucose {
             if let smbgValue = smbgEvent.value {
                 bgValue = round(Double(smbgValue.floatValue) * kGlucoseConversionToMgDl)
+            }
+            if let subType = smbgEvent.subType {
+                if subType == "manual" {
+                    userEntered = 1
+                }
             }
         }
         

    private func nextItemForHealthKit(event: CommonData) {
        let kGlucoseConversionToMgDl: Double = 18.0
        var bgValue: Double?
        
        if let cbgEvent = event as? ContinuousGlucose {
            if let cbgValue = cbgEvent.value {

            let bgQuantity = HKQuantity(unit: HKUnit(fromString: "mg/dL"), doubleValue: bgValue!)
            let deviceId = event.deviceId ?? ""
            // TODO: add guid to metadata as well, need to rev data model to add this...
            var metadata: [String: AnyObject] = ["tidepoolId": itemId, "deviceId": deviceId, "type": type]
            if let userEntered = userEntered {
                metadata[HKMetadataKeyWasUserEntered] = userEntered
            }
            let bgSample = HKQuantitySample(type: bgType!, quantity: bgQuantity, startDate: time, endDate: time, metadata: metadata)
            DDLogVerbose("candidate Tidepool item at time: \(time), value: \(bgQuantity)")
            itemsToPush.append(bgSample)
