     return recordDateRanges[section]
   }
   
-  func recordsOfIndexPath(section:Int) -> [ClockRecord]{
+  func recordsOfSection(section:Int) -> [ClockRecord]{
     return recordDateRangeAtSection(section).records
   }
   
   func recordAtIndexPath(indexPath:NSIndexPath) -> ClockRecord{
-    let records = recordsOfIndexPath(indexPath.section)
+    let records = recordsOfSection(indexPath.section)
     return records[indexPath.item]
   }
   

  func deleteRecordAtIndexPath(indexPath:NSIndexPath){
      let record = recordAtIndexPath(indexPath)
      ClockRecordService.sharedService.delete(record)
      collectionView?.deleteItemsAtIndexPaths([indexPath])
      loadData()
  }

  }
  
  func numberOfItemsInSection(section:Int) -> Int {
    return recordsOfSection(section).count
  }
  // MARK: DataSource
  
