pair as map