             return false
         }
     }
-    func get(mediator : RMediator, key : T) -> [U] {
+    func get(key : T, mediator : RMediator) -> [U] {
         var elements = [U]()
         _ = try? self.walk(mediator: mediator, between: (key, key)) { (leaf) in
             for (k,v) in leaf.pairs {

                    if key <= max {
                        do {
                            let (node, _) : (TreeNode<T,U>, PageStatus) = try mediator.readPage(pid)
                            if node.contains(mediator: mediator, key: key) {
                                return true
                            }
                        } catch {}

                    if key >= min && key <= max {
                        do {
                            let (node, _) : (TreeNode<T,U>, PageStatus) = try mediator.readPage(pid)
                            if node.contains(key: key, mediator: mediator) {
                                return true
                            }
                        } catch {}
