         let fdIndex = monthData[FIRST_DAY_INDEX]
         let startIndex = NSIndexPath(forItem: fdIndex, inSection: section)
         let endIndex = NSIndexPath(forItem: fdIndex + itemLength - 1, inSection: section)
-
+        
         if let theStartDate = dateFromPath(startIndex), theEndDate = dateFromPath(endIndex) {
             return (theStartDate, theEndDate)
         }

            dateBelongsTo = .ThisMonth
        } else if
            itemIndex < fdIndex  &&
            itemSection - 1 > -1  { // Prior month is available
                let startOfMonthSection = startMonthSectionForSection(itemSection - 1)
                let cellDate = (numberOfRowsPerMonth * MAX_NUMBER_OF_DAYS_IN_WEEK * (itemSection % numberOfSectionsPerMonth)) + itemIndex - offSet + 1
                let dateToAdd = monthInfo[startOfMonthSection][TOTAL_DAYS_IN_MONTH]
                let dateInt = cellDate + dateToAdd - monthInfo[itemSection][FIRST_DAY_INDEX]
                cellText = String(dateInt)
                dateBelongsTo = .PreviousMonthWithinBoundary

        } else  if itemIndex >= fdIndex + nDays && itemSection + 1 < monthInfo.count { // Following months
            let startOfMonthSection = startMonthSectionForSection(itemSection)
            let cellDate = (numberOfRowsPerMonth * MAX_NUMBER_OF_DAYS_IN_WEEK * (itemSection % numberOfSectionsPerMonth)) + itemIndex - offSet + 1

    
    private func xibFileValid() -> Bool {
        guard let xibName =  cellViewXibName else {
            //            print("Did you remember to register your xib file to JTAppleCalendarView? call the registerCellViewXib method on it because xib filename is nil")
            return false
        }
        guard let viewObject = NSBundle.mainBundle().loadNibNamed(xibName, owner: self, options: [:]) where viewObject.count > 0 else {
            //            print("your nib file name \(cellViewXibName) could not be loaded)")
            return false
        }
        
        guard let _ = viewObject[0] as? JTAppleDayCellView else {
            //            print("xib file class does not conform to the protocol<JTAppleDayCellViewProtocol>")
            return false
        }
        
