         
         var next = iter.peek()
         while next != nil {
-            let serializedSize  = next!.0.serializedSize + next!.1.serializedSize
+            let serializedSize = next!.0.serializedSize + next!.1.serializedSize
             if remainingBytes < serializedSize {
                 break
             }

        if leaf.spaceForPair(pair, pageSize: m.pageSize) {
//            print("- there is space in the \(leafStatus) leaf for the add")
            try leaf.addPair(pair)
            let max = leaf.interval!.max
            
            let leafNode : TreeNode<T,U> = .leafNode(leaf)
            if case .dirty(let pid) = leafStatus {

    convenience init(version : UInt64, pageSize: Int, pairs: [(T,U)]) throws {
        var remainingBytes = pageSize - cookieHeaderSize
        for (key, value) in pairs {
            let serializedSize = key.serializedSize + value.serializedSize
            if remainingBytes < serializedSize {
                throw DatabaseError.SerializationError("Tree leaf node overflow")
            }
