transform a id=>key array into another one