         // to be able to handle. Currently, that means only taskReference activities with an identifier that
         // maps to a known task.
         self.activities = scheduledActivities.filter({ (schedule) -> Bool in
-            return taskReferenceForSchedule(schedule) != nil
+            return self.taskReferenceForSchedule(schedule) != nil
         })
         
         // reload table

            return dateFormatter.stringFromDate(self.scheduledOn).lowercaseString
        }
    }
}
    // works for Lilly but is not complete for Parkinsons (which include a separate section for "keep going"
    // activities *and* includes surveys that are build server-side (currently not supported by this implementation)
    
    private var reloading: Bool = false
    public func reloadData() {
        
        // Exit early if already reloading activities. This can happen if the user flips quickly back and forth from 
        // this tab to another tab.
        if (reloading) { return }
        reloading = true
        
        SBAUserBridgeManager.fetchChangesToScheduledActivities(activities, todayOnly: true) { [weak self] (obj, error) in
            guard (error == nil), let scheduledActivities = obj as? [SBBScheduledActivity] else { return }
            
            dispatch_async(dispatch_get_main_queue(), { 
                self?.loadActivities(scheduledActivities)
                self?.reloading = false
            })
        }
    }
