modified DoublePair