removed an old 'addPair' function on which others relied: add it back