added missing function buildPairs