added arr2rec