chaging arguments order of Object.eachArrayPair for more consistency