change base for Pair to AbstractSequentialList