renamed parameters in Pair class