moving the wrapper class Pair