make array of hashes instead of array of arrays