                 let oldStart = startDate
                 
                 let centerMonth = monthFromOffset(yOffset)
-                let monthOffset = adjustStartDateForCenteredMonth(date: centerMonth)
+                let monthOffset = adjustStartDateToCenter(date: centerMonth)
                 
                 if monthOffset != 0 {
                     let y = offsetForMonth(date: oldStart)

        if selectedIndexes.contains(indexPath) {
            cell.select(withAnimation: .none)
        }
//        selectedDates.forEach {
//            if date == $0 {
//                cell.select(withAnimation: .none)
//            }
//        }
        return cell
    }
    

        super.layoutSubviews()
        collectionView.frame = bounds
        gradientLayer.frame = bounds

        recenterIfNeeded()
    }
}
